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

remove unevaluatedProperties #537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shanejonas
Copy link
Contributor

getting this error when using this JSON Schema and ajv.

unevaluatedProperties is part of JSON Schema 2019, we shouldn't use it anyways in an OpenRPC document since the spec points out using JSON Schema 07.

strict mode: unknown keyword: "unevaluatedProperties"

are we sure we need unevaluatedProperties here?

getting this error when using this schema and ajv.

`unevaluatedProperties` is part of json schema 2019, we shouldn't use it in an [OpenRPC document since it uses JSON Schema 07](https://spec.open-rpc.org/#meta-json-schema)

`strict mode: unknown keyword: "unevaluatedProperties"`
@lightclient
Copy link
Member

The original discussion is here: #435 (comment)

I also noted that it was not available in draft 07, but didn't realize that was a strict requirement for OpenRPC. Seems like we should remove it, but it appears there is an issue with schema if we directly accept this PR:

https://www.jsonschemavalidator.net/s/pGB6o5eO

Any idea how to keep the schema strict here, but still remove this value?

@shanejonas
Copy link
Contributor Author

if I remove the stuff inline with oneOf the gas, gasPrice etc passes validation. Maybe something up with the merge-all-of?

image

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

Successfully merging this pull request may close these issues.

2 participants