pub fn parse_spec(content: &str) -> Result<OpenAPI>Expand description
Parse an OpenAPI specification from a string.
Tries JSON first when the content starts with {, but falls back to YAML
on JSON failure — flow-style YAML documents (e.g. {key: value}) also
start with { and would otherwise be misclassified as malformed JSON.