Skip to main content

parse_openapi

Function parse_openapi 

Source
pub fn parse_openapi(path: &Path) -> Option<SpecParseResult>
Expand description

Parse an OpenAPI (2.0 Swagger / 3.x) spec file.

Returns None if the file cannot be read, is not valid JSON/YAML, or lacks an openapi or swagger top-level key.