Skip to content

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