Skip to main content

compile_body_schema

Function compile_body_schema 

Source
fn compile_body_schema(
    spec: &Value,
    operation: &Value,
    method: &str,
    template: &str,
) -> Result<(Option<Validator>, bool), String>
Expand description

Compiles the application/json requestBody schema for an operation, if present, embedding the spec’s components so local $refs resolve.