oaspec/openapi/normalize
Values
pub fn normalize(
spec: spec.OpenApiSpec(stage),
) -> spec.OpenApiSpec(stage)
Normalize an OpenApiSpec after parsing. Converts OAS 3.1 patterns to 3.0-compatible representations:
- raw_type with multiple types becomes oneOf
- const_value becomes a single-value enum