open-rpc / spec

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

no `methods` member in `Components Object` #389

Open aatifsyed opened 1 month ago

aatifsyed commented 1 month ago

OpenRPC.methods: [Method | Reference]:

https://github.com/open-rpc/spec/blob/0e08a5c81beeacab462997a4d3bc66c0ba965c6d/spec.md?plain=1#L113

but there is no methods member: https://github.com/open-rpc/spec/blob/0e08a5c81beeacab462997a4d3bc66c0ba965c6d/spec.md?plain=1#L310-L323

github-actions[bot] commented 1 month ago

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

aatifsyed commented 1 month ago

Relevant comment: https://github.com/open-rpc/spec/issues/339#issuecomment-819063894

aatifsyed commented 1 month ago

Possible that this shouldn't be allowed, since it'd allow you to trivially create duplicate methods, and if not, then... why have them in components?