Skip to main content

parse_openapi_json

Function parse_openapi_json 

Source
pub fn parse_openapi_json(json: &str) -> Result<Spec, Error>
Expand description

Parse OpenAPI spec from JSON string

Pre-processes the JSON to handle oas3 limitations:

  • Removes unsupported siblings from $ref objects (oas3 only supports summary and description)