-
Notifications
You must be signed in to change notification settings - Fork 1
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 for _get_schema_v2 always returning None #14
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@sebcampos Thanks for working on this. Can you please fix the tests? |
Sure thing looks like it affected the enum tests.I’ll look a little more deeply
and update the PR once I understand why it’s causing this
On Sun, 27 Oct 2024 at 13:52, Tochukwu wrote:
@sebcampos [https://github.com/sebcampos] Thanks for working on this. Can you
please fix the tests?
—
Reply to this email directly, view it on GitHub
[#14 (comment)], or
unsubscribe
[https://github.com/notifications/unsubscribe-auth/APQVOBJMMOCG5EURWMRAHE3Z5VG7BAVCNFSM6AAAAABQVFF2WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGE3TCMBUGQ]
.
You are receiving this because you were mentioned.[https://github.com/notifications/beacon/APQVOBJUCJ3L3LCBTKX367DZ5VG7BA5CNFSM6AAAAABQVFF2WKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUROIHCI.gif]
Message ID: ***@***.***>
Sent with Criptext secure email[https://api.criptext.com/email/open/%3C1730108274743.066511%40criptext.com%3E]
|
It looks like the tests are failing because there was a change to how pydantic
handles the “allOf” enum value.
* Pydantic v2.9 introduced a change that simplifies the use ofallOf. In many
cases, you can now achieve the same validation using nested models and
inheritance without explicitly usingallOf.
pydantic/pydantic#478
[pydantic/pydantic#478]
If I switch pydantic version to2.8.2 the tests pass.I’ll update the test cases
to take into account versions 2.9.2 and above in my PR
On Mon, 28 Oct 2024 at 02:37, sebastian campos wrote:
Sure thing looks like it affected the enum tests.I’ll look a little more deeply
and update the PR once I understand why it’s causing this
On Sun, 27 Oct 2024 at 13:52, Tochukwu wrote:
@sebcampos [https://github.com/sebcampos] Thanks for working on this. Can you
please fix the tests?
—
Reply to this email directly, view it on GitHub
[#14 (comment)], or
unsubscribe
[https://github.com/notifications/unsubscribe-auth/APQVOBJMMOCG5EURWMRAHE3Z5VG7BAVCNFSM6AAAAABQVFF2WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGE3TCMBUGQ]
.
You are receiving this because you were mentioned.[https://github.com/notifications/beacon/APQVOBJUCJ3L3LCBTKX367DZ5VG7BA5CNFSM6AAAAABQVFF2WKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUROIHCI.gif]
Message ID: ***@***.***>
Sent with Criptext secure email[https://api.criptext.com/email/open/%3C1730606068561.537277%40criptext.com%3E]
|
…ile, modfied so that it is skipped if the version is not below 2.9.2, created to test against the new response format for allOf implemented in 2.9.2 and above
@sebcampos Thanks for your hard work here. I will merge this and fix it from my end. |
Thanks for your great work and Django addition!
On Mon, 18 Nov 2024 at 13:25, Tochukwu wrote:
Merged #14 [#14] into master.
—
Reply to this email directly, view it on GitHub
[#14 (comment)], or
unsubscribe
[https://github.com/notifications/unsubscribe-auth/APQVOBLKHUMVNFQQY4HLOP32BJLKXAVCNFSM6AAAAABQVFF2WKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGM2DANBZG4ZTGMA]
.
You are receiving this because you were mentioned.[https://github.com/notifications/beacon/APQVOBOKV6DGUBAFTJOZ7HT2BJLKXA5CNFSM6AAAAABQVFF2WKWGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAHES5NGZA.gif]
Message ID: ***@***.***>
Sent with Criptext secure email[https://api.criptext.com/email/open/%3C1731988290705.650168%40criptext.com%3E]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix for _get_schema_v2 always returning None