Skip to main content

parse_spec

Function parse_spec 

Source
pub fn parse_spec(json: &str) -> Result<Vec<ApiOperation>, Error>
Expand description

Parse an OpenAPI 3.0.x JSON spec into a list of API operations.

Validates the spec version (only 3.0.x supported), extracts all operations from paths, resolves $ref references, and builds ApiOperation for each (method, path, operation) tuple.