Files
openapi-first/openapi_first/codegen_routes.pyi
Vishesh 'ironeagle' Bangotra 9cb8bf8f1c feat: emit template-style route stubs (async, body param, service hint)
Add generate_routes(template_style=...) and CLI --template-style. When on,
stubs use async def, a JSON body parameter named body (dict or Model), and
with --inject-request a service-lookup hint comment before NotImplementedError.
Default behaviour (def/payload) unchanged. +2 tests (32 passed), wiki + MCP
bundle regenerated.
2026-10-13 19:35:04 +05:30

13 lines
265 B
Python

from pathlib import Path
def generate_routes(
spec_path: Path,
output_dir: Path,
*,
use_models: bool = ...,
models_module: str = ...,
inject_request: bool = ...,
package: bool = ...,
template_style: bool = ...,
) -> list[Path]: ...