Skip to main content

merge_components_into

Function merge_components_into 

Source
pub fn merge_components_into(schema_json: Value, spec: &OpenAPI) -> Value
Expand description

Merge the spec’s components into a root-level components key on the schema document. If the schema already declares a components key (rare but legal), it takes precedence — we don’t clobber explicit data. Returns the merged document.