oaspec/openapi/hoist

Values

pub fn hoist(spec: spec.OpenApiSpec) -> spec.OpenApiSpec

Hoist inline complex schemas into components.schemas, replacing them with $ref. This is a pre-processing pass that runs after parsing and before validation. The function is idempotent: running it twice produces the same result.

Search Document