Skip to content

Commit ced1413

Browse files
committed
Updating nullable fields
1 parent 0bd3683 commit ced1413

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

api/v1alpha1/openapi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4990,7 +4990,6 @@ components:
49904990
signerName:
49914991
description: Indicates the requested signer, and is a qualified name.
49924992
type: string
4993-
nullable: true #EDM-852
49944993
uid:
49954994
description: UID of the user that created the CSR, populated by the API server on creation and immutable.
49964995
type: string

flightctl/models/certificate_signing_request_spec.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CertificateSigningRequestSpec(BaseModel):
3030
expiration_seconds: Optional[StrictInt] = Field(default=None, description="Requested duration of validity for the certificate.", alias="expirationSeconds")
3131
extra: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Extra attributes of the user that created the CSR, populated by the API server on creation and immutable.")
3232
request: Optional[Union[StrictBytes, StrictStr]] = Field(description="The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource.")
33-
signer_name: Optional[StrictStr] = Field(description="Indicates the requested signer, and is a qualified name.", alias="signerName")
33+
signer_name: StrictStr = Field(description="Indicates the requested signer, and is a qualified name.", alias="signerName")
3434
uid: Optional[StrictStr] = Field(default=None, description="UID of the user that created the CSR, populated by the API server on creation and immutable.")
3535
usages: Optional[List[StrictStr]] = Field(default=None, description="Usages specifies a set of key usages requested in the issued certificate.")
3636
username: Optional[StrictStr] = Field(default=None, description="Name of the user that created the CSR, populated by the API server on creation and immutable.")
@@ -80,11 +80,6 @@ def to_dict(self) -> Dict[str, Any]:
8080
if self.request is None and "request" in self.model_fields_set:
8181
_dict['request'] = None
8282

83-
# set to None if signer_name (nullable) is None
84-
# and model_fields_set contains the field
85-
if self.signer_name is None and "signer_name" in self.model_fields_set:
86-
_dict['signerName'] = None
87-
8883
return _dict
8984

9085
@classmethod

0 commit comments

Comments
 (0)