From a6b6f7943821d01db18946fef88e288e7d6d9ffe Mon Sep 17 00:00:00 2001 From: XiaolongZhang Date: Fri, 7 Aug 2026 17:54:20 +0800 Subject: [PATCH] chore: replace deprecated --allow-extra-fields codegen flag datamodel-code-generator deprecated --allow-extra-fields in favor of --extra-fields=allow: the CLI emits a DeprecationWarning on every generate_models.sh run, and the alias will be removed upstream (at which point generation breaks). Swap to the supported flag. Verified byte-identical codegen output between the two flags (diff -r over the full release/2026-04-08 schema set, same options otherwise), so the committed models are unchanged and the #62 regeneration-equality check still passes. --- generate_models.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_models.sh b/generate_models.sh index edc38a6..95cd086 100755 --- a/generate_models.sh +++ b/generate_models.sh @@ -91,7 +91,7 @@ uv run \ --enum-field-as-literal all \ --disable-timestamp \ --use-double-quotes \ - --allow-extra-fields \ + --extra-fields=allow \ --use-type-alias \ --reuse-model \ --custom-template-dir templates \