Skip to content

fix(codegen): disable datamodel-codegen timestamp header#18

Merged
caballeto merged 1 commit into
mainfrom
fix/typegen-disable-timestamp
May 1, 2026
Merged

fix(codegen): disable datamodel-codegen timestamp header#18
caballeto merged 1 commit into
mainfrom
fix/typegen-disable-timestamp

Conversation

@caballeto
Copy link
Copy Markdown
Member

Summary

  • datamodel-codegen stamps a wall-clock timestamp into the generated file header. Every spec-check CI run regenerates the file with a fresh timestamp, producing a one-line diff and spamming PRs (see chore: update generated API types #17 — a pure-timestamp churn PR).
  • Add `--disable-timestamp` so regeneration is deterministic: identical inputs produce byte-identical output.
  • Closes chore: update generated API types #17.

Test plan

  • Locally regen with OPENAPI_TOOLS=node ../mini/packages/openapi-tools/dist/cli.js ./scripts/typegen.sh — produces no diff vs committed output after header removal.
  • After merge, re-fire spec-propagate on mono; sdk-python Spec Check should go green with no open PR.

Made with Cursor

Without --disable-timestamp, every regen writes the current wall-clock
time into the generated file's header, causing spec-check CI to
open a PR on every run with a one-line timestamp-only diff.

Also refreshes the regenerated file (one-line header removal) and
picks up the already-published 0.5.0 version in uv.lock.
@caballeto caballeto merged commit 95ce438 into main May 1, 2026
4 checks passed
@caballeto caballeto deleted the fix/typegen-disable-timestamp branch May 1, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant