@asyncapi/avro-schema-parser
Version:
An AsyncAPI schema parser for Avro 1.x schemas.
9 lines (8 loc) • 367 B
TypeScript
import type { Schema } from 'avsc';
import type { SchemaParser, SpecTypesV2 } from '@asyncapi/parser';
type AvroSchema = Schema & {
[key: string]: any;
};
export declare function AvroSchemaParser(): SchemaParser;
export default AvroSchemaParser;
export declare function avroToJsonSchema(avroDefinition: AvroSchema): Promise<SpecTypesV2.AsyncAPISchemaDefinition>;