Skip to main content

Module loader

Module loader 

Source
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, or requestBodies) from a (possibly cross-file) $ref.
ref_file_part
The file part of a cross-file $ref (the text before #), or None for 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 $ref at site gives no name.