Skip to content

Commit 79d44cb

Browse files
committed
Disable python timestamp generation
1 parent 7cc7eda commit 79d44cb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Containers/Containerfile-python-codegen

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ COPY api.json /app/api.json
1212
RUN datamodel-codegen --input api.json --input-file-type openapi --output /app/models.py \
1313
--output-model-type pydantic_v2.BaseModel \
1414
--target-python-version 3.11 \
15-
--field-constraints
15+
--field-constraints \
16+
--disable-timestamp
1617

1718
CMD ["cat", "/app/models.py"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ https://smithy.io/2.0/index.html
1010

1111
## 🚀 Quickstart: Generate OpenAPI + Type Definitions
1212

13+
Modify the model in ./smithy then run
14+
15+
```bash
16+
./build-openapi.sh && ./build-types.sh --all
17+
```
18+
19+
1320
### 📦 Prerequisites
1421

1522
Only **Docker** is required for containerized builds. No need to install Java, Gradle, Python, or Node.js locally.

python/api_model/types/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# generated by datamodel-codegen:
22
# filename: api.json
3-
# timestamp: 2025-07-11T04:32:30+00:00
43

54
from __future__ import annotations
65

0 commit comments

Comments
 (0)