Skip to main content

extract_parameters

Function extract_parameters 

Source
pub fn extract_parameters(schema: &Value) -> Vec<ParameterDefinition>
Expand description

Extract parameter definitions from an OpenAPI schema

This function analyzes an OpenAPI schema (typically from a tool’s input_parameters) and extracts structured parameter information.

§Arguments

  • schema - The OpenAPI schema (should be an object schema with properties)

§Returns

A vector of parameter definitions