pub fn extract_output_schema(
operation: &Value,
openapi_doc: Option<&Value>,
) -> ValueExpand description
Extract output schema from OpenAPI operation responses.
Returns the output JSON Schema, or a default empty object schema.
Accepts any 2xx status code (200–299), matching the TypeScript implementation which filters on /^2\d\d$/. Codes are checked in lexicographic order so 200 is preferred over 201, 201 over 202, and so on.