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.
13 lines
265 B
Python
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]: ...
|