Skip to content

FIX to Pydantic 2#100

Open
abercromb wants to merge 3 commits into
IndominusByte:masterfrom
abercromb:master
Open

FIX to Pydantic 2#100
abercromb wants to merge 3 commits into
IndominusByte:masterfrom
abercromb:master

Conversation

@abercromb

Copy link
Copy Markdown

No description provided.

@yudytskiy

Copy link
Copy Markdown

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

ugolbck commented Feb 20, 2024

Copy link
Copy Markdown

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