pydantic / pydantic-extra-types

Extra Pydantic types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for ISO 639 (639-1, 639-2/T, 639-2/B) codes used to classify languages

ChristopherJHart opened this issue · comments

It could be useful to have ISO 639-based language codes added as types in this project. I wouldn't mind working on a PR to add this in, assuming the team agrees it'd be valuable.

Thank you!

Selected Assignee: @adriangb

That sounds reasonable to me. My only suggestion before you start work is that I'd rather they be Literals and not an enum if it makes sense to do it that way.