open-rpc / spec

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

Method Param Structure wording suggestions #288

Closed BelfordZ closed 4 years ago

BelfordZ commented 4 years ago
<a name="method-param-structure"></a>paramStructure | `"by-name"` \| `"by-position"` \| `"either"` | The expected format of the parameters. [As per the JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification#parameter_structures), the parameters of a [JSON-RPC request object](https://www.jsonrpc.org/specification#request_object) may be an array (`by-position`), an object (`by-name`), or either (`either`). The `params` field of a method with a `paramStructure` value of `by-name` MUST be an object, and MUST be an array in the case of `by-position`. The key or keys of a `params` object MUST be identical to its respective [`contentDescriptor.name`](#content-descriptor-name)s. Defaults to `"by-position"`.

Originally posted by @meowsbits in https://github.com/open-rpc/spec/pull/277

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.