You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ JSON: { ajvInstance: Ajv; }; }' is not assignable to parameter of type 'SchemaRegistryAPIClientOptions | undefined'.
Types of property 'JSON' are incompatible.
Type '{ ajvInstance: Ajv; }' is not assignable to type 'CurrentOptions & DeprecatedOptions & { ajvInstance?: { addSchema: (schema: AnySchema | AnySchema[], key?: string | undefined, _meta?: boolean | undefined, _validateSchema?: boolean | ... 1 more ... | undefined) => Ajv; compile: (schema: any) => ValidateFunction; } | undefined; referencedSchemas?: JsonConfluentSchema...'.
Type '{ ajvInstance: Ajv; }' is not assignable to type '{ ajvInstance?: { addSchema: (schema: AnySchema | AnySchema[], key?: string | undefined, _meta?: boolean | undefined, _validateSchema?: boolean | "log" | undefined) => Ajv; compile: (schema: any) => ValidateFunction; } | undefined; referencedSchemas?: JsonConfluentSchema[] | undefined; }'.
The types of 'ajvInstance.addSchema(...).opts' are incompatible between these types.
Type 'import("/home/peter/seau/git/example/app/node_modules/ajv/dist/core").InstanceOptions' is not assignable to type 'import("/home/peter/seau/git/example/app/node_modules/@kafkajs/confluent-schema-registry/node_modules/ajv/dist/core").InstanceOptions'.
Type 'InstanceOptions' is not assignable to type 'CurrentOptions'.
Types of property 'keywords' are incompatible.
Type 'import("/home/peter/seau/git/example/app/node_modules/ajv/dist/types/index").Vocabulary | undefined' is not assignable to type 'import("/home/peter/seau/git/example/app/node_modules/@kafkajs/confluent-schema-registry/node_modules/ajv/dist/types/index").Vocabulary | undefined'.
Type 'Vocabulary' is not assignable to type '(string | KeywordDefinition)[]'.
Type 'string | import("/home/peter/seau/git/example/app/node_modules/ajv/dist/types/index").KeywordDefinition' is not assignable to type 'string | import("/home/peter/seau/git/example/app/node_modules/@kafkajs/confluent-schema-registry/node_modules/ajv/dist/types/index").KeywordDefinition'.
Type 'CodeKeywordDefinition' is not assignable to type 'string | KeywordDefinition'.
Type 'import("/home/peter/seau/git/example/app/node_modules/ajv/dist/types/index").CodeKeywordDefinition' is not assignable to type 'import("/home/peter/seau/git/example/app/node_modules/@kafkajs/confluent-schema-registry/node_modules/ajv/dist/types/index").CodeKeywordDefinition'.
Types of property 'code' are incompatible.
Type '(cxt: import("/home/peter/seau/git/example/app/node_modules/ajv/dist/compile/validate/index").KeywordCxt, ruleType?: string | undefined) => void' is not assignable to type '(cxt: import("/home/peter/seau/git/example/app/node_modules/@kafkajs/confluent-schema-registry/node_modules/ajv/dist/compile/context").default, ruleType?: string | undefined) => void'.
Types of parameters 'cxt' and 'cxt' are incompatible.
Type 'KeywordCxt' is missing the following properties from type 'KeywordCxt': failResult, _errorts(2345)
sorry for the late response @PrestonGiorgianni, but I got this working by setting the exact same version of the Ajv package as the one specified by the schema registry package.json
the docs say you can specify a customer Ajv instance to handle custom formats and what not, but i'm getting a type failure
docs:
confluent-schema-registry/docs/usage.md
Lines 311 to 320 in a3921d3
however this code:
yields:
other details
package
The text was updated successfully, but these errors were encountered: