We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey everyone,
I tried to add an ID to a slice based schema type today but wasn't able to find out how to achieve this. Minimal required steps are:
r := new(jsonschema.Reflector) schema := r.Reflect(&[]struct{}{}) json, _ := schema.MarshalJSON() println(string(json))
the output is:
{ "$schema":"https://json-schema.org/draft/2020-12/schema", "items":{"properties":{},"additionalProperties":false,"type":"object"}, "type":"array" }
Which options do I have to add an $id field here?
$id
Thanks in advance 🙇
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey everyone,
I tried to add an ID to a slice based schema type today but wasn't able to find out how to achieve this.
Minimal required steps are:
the output is:
Which options do I have to add an
$id
field here?Thanks in advance 🙇
The text was updated successfully, but these errors were encountered: