Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/asyncapi/avro-schema-parser
/ functions
Functions
22 in github.com/asyncapi/avro-schema-parser
⨍
Functions
22
◇
Types & classes
0
↓ 34 callers
Function
avroToJsonSchema
(avroDefinition: AvroSchema)
src/index.ts:354
↓ 10 callers
Function
toParseInput
(raw: string)
test/avro-schema-parser.spec.ts:365
↓ 7 callers
Function
doTest
(originalInput: ParseSchemaInput, expectedOutput: any)
test/avro-schema-parser.spec.ts:135
↓ 5 callers
Function
getFullyQualifiedName
(avroDefinition: AvroSchema)
src/index.ts:93
↓ 3 callers
Function
cacheAvroRecordDef
* 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 callers
Function
convertAvroToJsonSchema
(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map<string, SpecTypesV2.AsyncAPISchemaDefiniti
src/index.ts:214
↓ 3 callers
Function
filterDiagnostics
(diagnostics: Diagnostic[], code: string)
test/avro-schema-parser.spec.ts:155
↓ 3 callers
Function
setAdditionalAttribute
(...names: string[])
src/index.ts:159
↓ 2 callers
Function
additionalAttributesMapping
(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:152
↓ 2 callers
Function
commonAttributesMapping
(avroDefinition: AvroSchema, jsonSchema: SpecTypesV2.AsyncAPISchemaDefinition, recordCache: { [key:string]: As
src/index.ts:83
↓ 2 callers
Function
doParseCoreTest
(parsedSchema: any, expectedOutput: string)
test/avro-schema-parser.spec.ts:143
↓ 2 callers
Function
requiredAttributesMapping
* Enrich the parent's required attribute with the required record attributes * @param fieldDefinition the actual field definition * @param parentJso
src/index.ts:113
↓ 1 callers
Function
AvroSchemaParser
()
src/index.ts:10
↓ 1 callers
Function
exampleAttributeMapping
(type: any, example: any, jsonSchema: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:137
↓ 1 callers
Function
extractNonNullableTypeIfNeeded
(typeInput: any, jsonSchemaInput: SpecTypesV2.AsyncAPISchemaDefinition)
src/index.ts:123
↓ 1 callers
Function
processRecordSchema
* 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 callers
Function
processUnionSchema
* 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 callers
Function
validateAvroSchema
(avroDefinition: AvroSchema)
src/index.ts:192
Function
filter
(field: string, value: unknown)
test/avro-schema-parser.spec.ts:144
Function
getMimeTypes
()
src/index.ts:49
Function
parse
(input: ParseSchemaInput<unknown, unknown>)
src/index.ts:36
Function
validate
(input: ValidateSchemaInput<unknown, unknown>)
src/index.ts:19