Expand description
Route generation from OpenAPI specifications
This module handles the generation of routes from OpenAPI specifications, including parameter extraction, path matching, and route creation.
Functionsยง
- convert_
path_ to_ axum_ format - Convert OpenAPI path parameters to Axum path format
- extract_
path_ parameters - Extract path parameters from an OpenAPI path template
- generate_
mock_ response_ code - Generate mock response generation code
- generate_
parameter_ extraction_ code - Generate parameter extraction code for a route
- generate_
parameter_ validation_ code - Generate validation code for route parameters
- generate_
route_ key - Generate a unique route key for caching/routing purposes
- generate_
routes_ from_ spec - Generate routes from an OpenAPI specification
- route_
matches_ pattern - Check if a route path matches a pattern (for routing purposes)
- validate_
path_ parameters - Validate that path parameters match between template and actual path