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 to Pydantic 2 #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

FIX to Pydantic 2 #100

wants to merge 3 commits into from

Conversation

abercromb
Copy link

No description provided.

@yudytskiy
Copy link

I would not recomend to remove each_item=True parameter from validators.
Just import Set and replace Sequence with Set:

-from typing import Optional, Union, Sequence, List
+from typing import Optional, Union, Sequence, List, Set
...
-     authjwt_token_location: Optional[Sequence[StrictStr]] = {'headers'}
+     authjwt_token_location: Optional[Set[StrictStr]] = {'headers'}
...
...

@ugolbck
Copy link

ugolbck commented Feb 20, 2024

Hi @IndominusByte could you please consider those changes? Thank you

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.

3 participants