Function openrpc_types::resolve_within
source · pub fn resolve_within(openrpc: OpenRPC) -> Result<OpenRPC, BrokenReference>
Expand description
Try and resolve all ReferenceOr
s in the document by looking up
references in OpenRPC::components
.
Returns a BrokenReference
on the first ReferenceOr::Reference
with no
corresponding entry in OpenRPC::components
.
Note that unlike schemars::schema::SchemaObject::reference
s, OpenRPC’s
references are acyclic, so this is guaranteed to terminate.