mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
Add ability to use min_length and max_length constraints with secret types (#1974)
* Add ability to use min_length/max_length constraints with secret types * Add change file * Remove StrLike and BytestLike classes * Add ability to define constraints for a custom class * Fix issue with incorrect secrets schema generation * Add schema test for SecretStr and SecretBytes * Add test to cover valid secret length
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Add ability to use `min_length/max_length` constraints with secret types
|
||||
Reference in New Issue
Block a user