OpenRPC export that passes the meta-schema, from RPC or REST
Exporting an item to OpenRPC now writes a document that is valid against the OpenRPC meta-schema. You can export from gRPC, Thrift, GraphQL, OpenAPI or any other source. How the OpenRPC is written.
- Valid. Every method has
params, andinfo.versionis always written. Each export is checked against the meta-schema before it is offered. - REST operations kept. REST operations used to be left out. They are now methods with by-name
params, a result and error codes, and the HTTP binding is kept as
x-http. - Notifications and errors. One-way operations are written as notifications. Errors, tags and deprecations are written, and an imported OpenRPC document now keeps them.
- Working schema references. Every
$refnames a written component, and scalars such asint64get their JSON Schema form instead of a reference to nothing. - Exact fidelity report. Whatever OpenRPC cannot carry is listed on the construct it concerns. Each REST operation lists its HTTP binding, parameter locations, success status and error statuses separately. Streams, channels and field numbers are listed too.
- Events as notifications. AsyncAPI publish and subscribe operations become notifications, with
the channel address kept as
x-channel.
