oaspec/openapi/hoist

Values

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

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