Skip to content

Auto-generate Pydantic models from JSON Schemas #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor
  • Loading branch information
osolmaz committed Aug 21, 2024
commit 6c0047c3e551ed2c0c408e57d160c1aa71b14206
2 changes: 1 addition & 1 deletion tests/run_serialization_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_load_page():
# Serialize it again
serialized = page.model_dump_json(
serialize_as_any=True, # This argument is needed to output nested models
# exclude_none=True,
exclude_none=True,
)

# TBD: Compare the serialized content with the original content
Expand Down
Loading