Skip to content

Can registre JSON schemas #2

@fjvierap

Description

@fjvierap

For Kafka addon seems that is possible to register avro schemas but json schema seems to fail.

For instance when I try to register this json schema:

{
  "definitions": {
    "record:oms.order": {
      "type": "object",
      "required": [
        "id"
      ],
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        }
      }
    }
  },
  "$ref": "#/definitions/record:oms.order"
}

I got this error:
[ERROR] KafkaTest.testFeature:13 No type: {"definitions":{"record:oms.order":{"type":"object","required":["id"],"additionalProperties":false,"properties":{"id":{"type":"string"}}}},"$ref":"#/definitions/record:oms.order"}

Am I doing something wrong or JSON schema is not supported yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions