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

i18n=Dict[LanguageTag, str] throws warning #3

Open
PaulVanSchayck opened this issue Sep 22, 2023 · 0 comments
Open

i18n=Dict[LanguageTag, str] throws warning #3

PaulVanSchayck opened this issue Sep 22, 2023 · 0 comments

Comments

@PaulVanSchayck
Copy link
Collaborator

PaulVanSchayck commented Sep 22, 2023

When using:

i18n = Dict[LanguageTag, str]

The following warning is thrown, when serializing to JSON

Expected `definition-ref` but got `LanguageTag` - serialized value may not be as expected

This seems to be related to pydantic/pydantic#6467 or pydantic/pydantic#6422.

For now, we are using:

i18n = Dict[str, str]
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

No branches or pull requests

1 participant