open-rpc / spec

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

Configurable Defaults #298

Closed BelfordZ closed 4 years ago

BelfordZ commented 4 years ago

As a writer of an open-rpc document, I don't want to have to repeat the same values throughout the document. ex:

"I have to set paramStructure in every method because my API is by-name only" "Theres no way to refer to a group of errors, I have to ref the same errors in every method"

etc etc

Solutions considered:

  1. Add solutions on an as-needed basis. When someone wants param structure on the root, add it. When someone whats Error groups, add it.
  2. Add the ability to set defaults for main data structures, placed in under a root key named defaults. This would work similar to components, though it would have specific meaning to tooling developers to observe.
  3. any other ideas?
stale[bot] commented 4 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.