@@ -68,9 +68,8 @@ class OAuth2ClientJsonSigningKeyResponse(BaseModel):
6868 status : Optional [StrictStr ] = Field (
6969 default = None , description = "Status of the OAuth 2.0 client JSON Web Key"
7070 )
71- kty : Optional [StrictStr ] = Field (
72- default = None ,
73- description = "Cryptographic algorithm family for the certificate's key pair" ,
71+ kty : StrictStr = Field (
72+ description = "Cryptographic algorithm family for the certificate's key pair"
7473 )
7574 alg : Optional [StrictStr ] = Field (
7675 default = None , description = "Algorithm used in the key"
@@ -103,9 +102,6 @@ def status_validate_enum(cls, value):
103102 @field_validator ("kty" )
104103 def kty_validate_enum (cls , value ):
105104 """Validates the enum"""
106- if value is None :
107- return value
108-
109105 if value not in set (["RSA" , "EC" ]):
110106 raise ValueError ("must be one of enum values ('RSA', 'EC')" )
111107 return value
@@ -210,11 +206,6 @@ def to_dict(self) -> Dict[str, Any]:
210206 if self .kid is None and "kid" in self .model_fields_set :
211207 _dict ["kid" ] = None
212208
213- # set to None if kty (nullable) is None
214- # and model_fields_set contains the field
215- if self .kty is None and "kty" in self .model_fields_set :
216- _dict ["kty" ] = None
217-
218209 # set to None if alg (nullable) is None
219210 # and model_fields_set contains the field
220211 if self .alg is None and "alg" in self .model_fields_set :
0 commit comments