Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can registre JSON schemas #2

Open
fjvierap opened this issue Jan 19, 2024 · 2 comments
Open

Can registre JSON schemas #2

fjvierap opened this issue Jan 19, 2024 · 2 comments

Comments

@fjvierap
Copy link

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?

@ptrthomas
Copy link
Member

@fjvierap yes, JSON scema is not suported, I would expect this not needed because "plain JSON" serialization works. if this is something that is a blocker or expected in your registry / env etc, please do share more details or example and we will look at feasibility

@fjvierap
Copy link
Author

@ptrthomas that is something it is not critical for us. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants