You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering an issue with referencing a schema using $ref. Despite following the documentation example, the child reference is never resolved. It seems the library attempts to read from the file system but cannot locate the file in the specified path.
Description
Documentation
I’m encountering an issue with referencing a schema using $ref. Despite following the documentation example, the child reference is never resolved. It seems the library attempts to read from the file system but cannot locate the file in the specified path.
Error message:
compilation failed: invalid json file:///Users/user.name/kafka-go-producer/src/cmd/greeting_categories.schema.json: EOF"
How to reproduce
Parent Schema:
{ "$id": "zendesk-talk-streams", "$schema": "http://json-schema.org/draft/2020-12/schema", "oneOf": [ { "$ref": "greeting_categories.schema.json" } ], "title": "Zendesk Talk Streams" }
Child Schema:
{ "additionalProperties": false, "properties": { "id": { "type": [ "null", "integer" ] }, "name": { "type": [ "null", "string" ] } }, "required": [ "id", "name" ], "type": "object" }
If you attempt to serialize a JSON message with the provided values, the child reference remains unresolved.
The text was updated successfully, but these errors were encountered: