spring-cloud / spring-cloud-schema-registry

A schema registry implementation for Spring Cloud Stream
47 stars 28 forks source link

Avro: add support for multiple records definitions in one .avsc file. #3

Closed sabbyanandan closed 4 years ago

sabbyanandan commented 5 years ago

@4shael commented on Fri Sep 07 2018

Now AvroSchemaRegistryClientMessageConverter is failing, when trying to parse schema from .avsc with more then one record definition inside. Example:

[
  {
    "namespace": "com.example",
    "type": "record",
    "name": "Foo",
    "fields": [
      {
        "name": "id",
        "type": "string"
      }
    ]
  },
  {
    "namespace": "com.example",
    "type": "record",
    "name": "Bar",
    "fields": [
      {
        "name": "id",
        "type": "string"
      },
      {
        "name": "foo",
        "type": "Foo"
      }
    ]
  }
]
sabbyanandan commented 4 years ago

This is a very old issue; let's verify this works, and close it then.