curl -X POST -i -H "Content-Type: application/vnd.schemaregistry.v1+json" --data '[{ "type": "record", "name": "rec1", "fields" : [ {"name": "age", "type": "long"} ] }, { "type": "record", "name": "rec2", "fields" : [ {"name": "name", "type": "string"} ] }]' http://localhost:8081/subjects/events-value/versions
this throws an exception:
[2016-07-07 17:50:54,070] ERROR Unhandled exception resulting in internal server error response (io.confluent.rest.exceptions.GenericExceptionMapper:37)
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of io.confluent.kafka.schemaregistry.client.rest.entities.requests.RegisterSchemaRequest out of START_ARRAY token
Does union Avro types deliberately not supported? what schema can be used for a topic if I want to publish multiple different types to a single topic?
final SchemaValidator backwardValidator = new SchemaValidatorBuilder().canReadStrategy().validateLatest();
final Schema schema1 = new Schema.Parser().parse(v1);
final Schema schema2 = new Schema.Parser().parse(v2);
backwardValidator.validate(schema1, ImmutableList.of(schema2));
backwardValidator.validate(schema2, ImmutableList.of(schema1));
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/544fe171-4c89-46f6-ae66-3680abe5c138%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/ZRDG3yM5iG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.