MCPcopy Index your code

hub / github.com/asyncapi/avro-schema-parser / functions

Functions22 in github.com/asyncapi/avro-schema-parser

↓ 34 callersFunctionavroToJsonSchema
(avroDefinition: AvroSchema)
src/index.ts:354
↓ 10 callersFunctiontoParseInput
(raw: string)
test/avro-schema-parser.spec.ts:365
↓ 7 callersFunctiondoTest
(originalInput: ParseSchemaInput, expectedOutput: any)
test/avro-schema-parser.spec.ts:135
↓ 5 callersFunctiongetFullyQualifiedName
(avroDefinition: AvroSchema)
src/index.ts:93
↓ 3 callersFunctioncacheAvroRecordDef
* Cache the passed value under the given key. If the key is undefined the value will not be cached. This function * uses mutation of the passed cache
src/index.ts:208
↓ 3 callersFunctionconvertAvroToJsonSchema
(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map<string, SpecTypesV2.AsyncAPISchemaDefiniti
src/index.ts:214
↓ 3 callersFunctionfilterDiagnostics
(diagnostics: Diagnostic[], code: string)
test/avro-schema-parser.spec.ts:155
↓ 3 callersFunctionsetAdditionalAttribute
(...names: string[])
src/index.ts:159
↓ 2 callersFunctionadditionalAttributesMapping
(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:152
↓ 2 callersFunctioncommonAttributesMapping
(avroDefinition: AvroSchema, jsonSchema: SpecTypesV2.AsyncAPISchemaDefinition, recordCache: { [key:string]: As
src/index.ts:83
↓ 2 callersFunctiondoParseCoreTest
(parsedSchema: any, expectedOutput: string)
test/avro-schema-parser.spec.ts:143
↓ 2 callersFunctionrequiredAttributesMapping
* Enrich the parent's required attribute with the required record attributes * @param fieldDefinition the actual field definition * @param parentJso
src/index.ts:113
↓ 1 callersFunctionAvroSchemaParser
()
src/index.ts:10
↓ 1 callersFunctionexampleAttributeMapping
(type: any, example: any, jsonSchema: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:137
↓ 1 callersFunctionextractNonNullableTypeIfNeeded
(typeInput: any, jsonSchemaInput: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:123
↓ 1 callersFunctionprocessRecordSchema
* When a record type is found in an avro schema this function can be used to process the underlying fields and return * the map of props contained by
src/index.ts:295
↓ 1 callersFunctionprocessUnionSchema
* Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed * jsonSchema and recordCache obje
src/index.ts:332
↓ 1 callersFunctionvalidateAvroSchema
(avroDefinition: AvroSchema)
src/index.ts:192
Functionfilter
(field: string, value: unknown)
test/avro-schema-parser.spec.ts:144
FunctiongetMimeTypes
()
src/index.ts:49
Functionparse
(input: ParseSchemaInput<unknown, unknown>)
src/index.ts:36
Functionvalidate
(input: ValidateSchemaInput<unknown, unknown>)
src/index.ts:19