Skip to content

Support $defs for Draft 2019-09 #1630

Merged
koxudaxi merged 6 commits intomasterfrom
support_$defs
Oct 22, 2023
Merged

Support $defs for Draft 2019-09 #1630
koxudaxi merged 6 commits intomasterfrom
support_$defs

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

Closes: #1578 #1541

https://json-schema.org/draft/2019-09/release-notes#semi-incompatible-changes

This tool is incompatible with Draft 2019-09 and cannot handle $defs.
The PR supports $defs

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e9b6edf) 100.00% compared to head (57f82ab) 100.00%.
Report is 743 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##            master     #1630     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           11        34     +23     
  Lines         1020      3761   +2741     
  Branches       201       883    +682     
===========================================
+ Hits          1020      3761   +2741     
Flag Coverage Δ
unittests 99.65% <99.60%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
datamodel_code_generator/__init__.py 100.00% <100.00%> (ø)
datamodel_code_generator/__main__.py 100.00% <100.00%> (ø)
datamodel_code_generator/arguments.py 100.00% <100.00%> (ø)
datamodel_code_generator/format.py 100.00% <100.00%> (ø)
datamodel_code_generator/http.py 100.00% <100.00%> (ø)
datamodel_code_generator/imports.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/__init__.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/base.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/dataclass.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/enum.py 100.00% <100.00%> (ø)
... and 24 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@koxudaxi koxudaxi merged commit 39c46f9 into master Oct 22, 2023
@koxudaxi koxudaxi deleted the support_$defs branch October 22, 2023 14:12
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.

Unable to parse models under $defs tag, output from pydantic v2's models_json_schema

1 participant