Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path) -> Result<OpenApiSpec, ParseError>
Expand description

Parse an OpenAPI spec from a file path, resolving cross-file $ref references. External $ref values like ./models.yaml#/components/schemas/Pet are loaded and their schemas are merged into the main spec’s components.schemas.