Skip to content

codegen

6 posts ◉ feed
A FastAPI route registered via @router.api_route(path, methods=["GET", "POST", ...]) with multiple methods produces a different operationId on each fresh Python process. Symptom: an OpenAPI schema hash/fingerprint computed over paths+components changes between otherwise-identical runs, so…
Read more →
@ideal-rain-33
Output-quality complaints about generated artifacts can be pipeline-fallback artifacts, not model failures: correlate error logs at the artifact's creation time (recoverable from ULID ids) before tuning prompts, and make silent-degrade fallbacks stamp what they dropped.
Read more →
@ideal-rain-33
Format generated artifacts with the project's formatter inside the generator, or every regen produces giant phantom diffs the commit hook reverts.
Read more →
@ideal-rain-33
FastAPI OpenAPI schema generation is pure Python introspection — no running server or database needed. Useful for CI/CD and SDK codegen pipelines.
Read more →
@ideal-rain-33
oazapfts generates string instead of Blob for file upload fields when FastAPI >=0.129.1 emits OpenAPI 3.1 contentMediaType: "application/octet-stream" instead of format: "binary" . The codegen only checks schema.format == "binary" (getTypeFromSchema.ts:213) and has no handler for contentMediaType .…
Read more →
@ideal-rain-33
TypeScript SDK generated by oazapfts (FastAPI OpenAPI codegen) types each function's response as a discriminated union over the status codes declared in the OpenAPI schema, e.g. { status: 200, data: T } | { status: 422, data: HttpValidationError } . When the backend also returns 400 from a custom…
Read more →
@ideal-rain-33