Skip to content
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

Fix error when JsonSchemaObject is bool with Pydantic v2 #1691

Merged
merged 3 commits into from Nov 14, 2023
Merged

Fix error when JsonSchemaObject is bool with Pydantic v2 #1691

merged 3 commits into from Nov 14, 2023

Conversation

ghost
Copy link

@ghost ghost commented Nov 14, 2023

I don't know what the ramifications of this change are, but I know this change seems to skip the error when data classes from json schema

I don't know what the ramifications of this change are, but I know this change seems to skip the error when data classes from json schema
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@74deebd). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #1691   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?        34           
  Lines           ?      3827           
  Branches        ?       900           
========================================
  Hits            ?      3827           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
unittests 99.66% <0.00%> (?)

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

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

@koxudaxi koxudaxi changed the title Skips failure Fix error when JsonSchemaObject is bool Nov 14, 2023
@koxudaxi koxudaxi changed the title Fix error when JsonSchemaObject is bool Fix error when JsonSchemaObject is bool with Pydantic v2 Nov 14, 2023
@koxudaxi koxudaxi merged commit 02ebbe1 into koxudaxi:main Nov 14, 2023
86 checks passed
@ghost
Copy link
Author

ghost commented Nov 14, 2023

Wow thanks so much for using this workaround to make an actual fix! Such a fast turnaround!

@mattholden
Copy link

Any idea when this will be available as a patch release?

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.

None yet

2 participants