UNPKG

@kafkajs/confluent-schema-registry

Version:

ConfluentSchemaRegistry is a library that makes it easier to interact with the Confluent schema registry, it provides convenient methods to encode, decode and register new schemas using the Apache Avro serialization format.

14 lines (13 loc) 499 B
import { Schema, ProtoOptions, ProtoConfluentSchema } from './@types'; export default class ProtoSchema implements Schema { private message; constructor(schema: ProtoConfluentSchema, opts?: ProtoOptions); private getNestedTypeName; private getTypeName; private trimStart; toBuffer(payload: object): Buffer; fromBuffer(buffer: Buffer): any; isValid(payload: object, opts?: { errorHook: (path: Array<string>, value: any, type?: any) => void; }): boolean; }