open-rpc / spec

The OpenRPC specification
https://spec.open-rpc.org
Apache License 2.0
166 stars 49 forks source link

Using example.externalValue throws validation error #350

Closed sandreae closed 2 years ago

sandreae commented 3 years ago

In the openRPC specs externalValue is given as a valid field in the Example Object but I get validation errors when using it in a spec with mock-server and i see it isn't defined in the meta-schema here.

Error validating OpenRPC Document against @open-rpc/meta-schema.
The errors found are as follows:
[
  {
    "keyword": "required",
    "dataPath": ".components.examples['FirstEntryEncoded']",
    "schemaPath": "#/required",
    "params": {
      "missingProperty": "value"
    },
    "message": "should have required property 'value'"
  }
]
Please revise the validation errors above and try again.

If it isn't a valid field then the specs just need updating. It would be really handy to have for my use case though if it's in the pipeline.

Thanks for your work!

github-actions[bot] commented 3 years ago

Welcome to OpenRPC! Thank you for taking the time to create an issue. Please review the guidelines

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

BelfordZ commented 2 years ago

Made an issue on meta-schema for this. Thanks