Closed ferreteleco closed 4 years ago
Welcome to OpenRPC! Thank you for taking the time to create an issue. Please review the guidelines
I think this should be a docs-react
ticket to support params-by-name
for showing examples. just having "paramStructure": "by-name",
ideally should change the docs-react examples to show an object instead.
I think its also a mater of documents, since the specification does not allow for a single object in Example Pairing Object params field:
my reply here is relevant: https://github.com/open-rpc/spec/issues/274#issuecomment-620393082
:tada: This issue has been resolved in version 1.2.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
After playing arround for a while I found that, when defining a call's example as a Example Pairing Object, the params for this MUST be inside a list, and I think It does not cover the case of calls where all params are defined by name. For example, for the given definition:
The resulting example display in the Open-RPC playground shows:
and I think the correct request should be of the form
From my point of view, 'params' field in Example Pairing Object should be allowed being a single Example object. Am I Wrong?