Expand description
Loading OpenAPI documents and resolving $refs.
Structs§
- Resolved
- A resolved structural object plus the referenced file it came from.
- Spec
- A loaded OpenAPI document plus its source path (for diagnostics).
Functions§
- ref_
component_ name - Extract the trailing component name of the given
kind(schemas,responses,parameters, orrequestBodies) from a (possibly cross-file)$ref. - ref_
file_ part - The file part of a cross-file
$ref(the text before#), orNonefor a same-document reference such as#/components/schemas/Foo. - ref_
target_ name - Extract the trailing schema name from a same-document
$ref(#/components/schemas/Foo->Foo). - schema_
ref_ reason - The reason a schema
$refatsitegives no name.