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

'const' annotation not supported #3

Open
meowsbits opened this issue Nov 12, 2020 · 0 comments
Open

'const' annotation not supported #3

meowsbits opened this issue Nov 12, 2020 · 0 comments

Comments

@meowsbits
Copy link
Member

The JSON Schema libraries which
etclabscore/go-openrpc-reflect depends on DO NOT
support the 'const' annotation, although
it is specd here: https://tools.ietf.org/html/draft-handrews-json-schema-validation-02#section-6.1.3

The workaround for this is to use a single item
in an 'enum' instead, which the spec explains to
be functionally equivalent.

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

1 participant