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:
Yurii Karabas
2020-10-25 20:32:11 +02:00
committed by GitHub
parent 1736ea1e70
commit 5bfee873c8
4 changed files with 129 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Add ability to use `min_length/max_length` constraints with secret types