Skip to main content

openapi_to_tools

Function openapi_to_tools 

Source
pub fn openapi_to_tools(spec: &str) -> Result<Vec<OpenApiTool>>
Expand description

Parse an OpenAPI 3.x JSON or YAML spec and generate tool definitions.

Each endpoint (method + path combination) becomes a separate OpenApiTool. Tool names are derived from operationId if present, or generated from the HTTP method and path.