diff --git a/api/kiwi_vpn_api/config.py b/api/kiwi_vpn_api/config.py index bfa4fb5..085fa44 100644 --- a/api/kiwi_vpn_api/config.py +++ b/api/kiwi_vpn_api/config.py @@ -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"