Expand description
Backend code generation utilities
This module provides shared utilities for generating backend server code from OpenAPI specifications. These utilities can be used by backend generator plugins to extract routes, convert schemas, and generate common patterns.
Structs§
- Query
Param Info - Query parameter information
- Response
Info - Response information
- Route
Info - Information about a route extracted from OpenAPI spec
Functions§
- extract_
path_ parameters - Extract path parameters from an OpenAPI path string
- extract_
routes - Extract all routes from an OpenAPI specification
- extract_
schemas - Get all schemas from OpenAPI components
- generate_
handler_ name - Generate a handler function name from route information
- sanitize_
name - Sanitize a name for use in Rust identifiers
- schema_
to_ rust_ type - Convert OpenAPI schema type to a Rust type name
- to_
pascal_ case - Convert a string to PascalCase
- to_
snake_ case - Convert a string to snake_case