Skip to content

Commit 01ffabd

Browse files
committed
Fix csr nullable
1 parent e5726af commit 01ffabd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

api/v1alpha1/openapi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4822,7 +4822,6 @@ components:
48224822
description: Name of the user that created the CSR, populated by the API server on creation and immutable.
48234823
type: string
48244824
required:
4825-
- request
48264825
- signerName
48274826
type: object
48284827
CertificateSigningRequestStatus:

docs/CertificateSigningRequestSpec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**expiration_seconds** | **int** | Requested duration of validity for the certificate. | [optional]
1010
**extra** | **Dict[str, List[str]]** | Extra attributes of the user that created the CSR, populated by the API server on creation and immutable. | [optional]
11-
**request** | **bytearray** | The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource. |
11+
**request** | **bytearray** | The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource. | [optional]
1212
**signer_name** | **str** | Indicates the requested signer, and is a qualified name. |
1313
**uid** | **str** | UID of the user that created the CSR, populated by the API server on creation and immutable. | [optional]
1414
**usages** | **List[str]** | Usages specifies a set of key usages requested in the issued certificate. | [optional]

flightctl/models/certificate_signing_request_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CertificateSigningRequestSpec(BaseModel):
2929
""" # noqa: E501
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.")
32-
request: Union[StrictBytes, StrictStr] = Field(description="The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource.")
32+
request: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, description="The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource.")
3333
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.")

0 commit comments

Comments
 (0)