doc strings

This commit is contained in:
Jörn-Michael Miehe 2022-03-30 10:43:02 +00:00
parent d6702165b8
commit 53cb7c9c1e

View file

@ -170,11 +170,19 @@ class JWTConfig(BaseModel):
class LockableString(BaseModel):
"""
A string that can be (logically) locked with an attached bool
"""
value: str
locked: bool
class LockableCountry(LockableString):
"""
Like `LockableString`, but with a `value` constrained two characters
"""
value: constr(max_length=2)
@ -191,6 +199,10 @@ class DNParts(BaseModel):
class CertificateAlgo(Enum):
"""
Supported certificate signing algorithms
"""
rsa2048 = "rsa2048"
rsa4096 = "rsa4096"
secp256r1 = "secp256r1"