sapna gandhi
sapna gandhi

Reputation: 123

Unable to register schema in Confluent Schema registry

I am trying to register an Avro Schema with Confluent schema registry. Schema registry is throwing this error: {"error_code":422,"message":"Unrecognized field: type"}

curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" --data @Sample.avsc  http://localhost:8081/subjects/sample_app-value/versions

Upvotes: 1

Views: 557

Answers (1)

cogitoergosum
cogitoergosum

Reputation: 2471

It is schemaType and not type. You can either set schemaType to AVRO or omit this key altogether as AVRO is default. Doc link.

Upvotes: 0

Related Questions