doc strings
This commit is contained in:
parent
d6702165b8
commit
53cb7c9c1e
1 changed files with 12 additions and 0 deletions
|
@ -170,11 +170,19 @@ class JWTConfig(BaseModel):
|
||||||
|
|
||||||
|
|
||||||
class LockableString(BaseModel):
|
class LockableString(BaseModel):
|
||||||
|
"""
|
||||||
|
A string that can be (logically) locked with an attached bool
|
||||||
|
"""
|
||||||
|
|
||||||
value: str
|
value: str
|
||||||
locked: bool
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
class LockableCountry(LockableString):
|
class LockableCountry(LockableString):
|
||||||
|
"""
|
||||||
|
Like `LockableString`, but with a `value` constrained two characters
|
||||||
|
"""
|
||||||
|
|
||||||
value: constr(max_length=2)
|
value: constr(max_length=2)
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,6 +199,10 @@ class DNParts(BaseModel):
|
||||||
|
|
||||||
|
|
||||||
class CertificateAlgo(Enum):
|
class CertificateAlgo(Enum):
|
||||||
|
"""
|
||||||
|
Supported certificate signing algorithms
|
||||||
|
"""
|
||||||
|
|
||||||
rsa2048 = "rsa2048"
|
rsa2048 = "rsa2048"
|
||||||
rsa4096 = "rsa4096"
|
rsa4096 = "rsa4096"
|
||||||
secp256r1 = "secp256r1"
|
secp256r1 = "secp256r1"
|
||||||
|
|
Loading…
Reference in a new issue