crypto: fix type for has_key

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2023-01-01 23:14:19 +01:00
parent 2cae6596eb
commit 960a2aab74
No known key found for this signature in database
2 changed files with 11 additions and 5 deletions

View File

@ -209,6 +209,13 @@ class CertificateKeyPairViewSet(UsedByMixin, ModelViewSet):
@extend_schema(
parameters=[
# Override the type for `has_key` above
OpenApiParameter(
"has_key",
bool,
required=False,
description="Only return certificate-key pairs with keys",
),
OpenApiParameter("include_details", bool, default=True),
]
)

View File

@ -5021,12 +5021,11 @@ paths:
operationId: crypto_certificatekeypairs_list
description: CertificateKeyPair Viewset
parameters:
- name: has_key
required: false
in: query
description: Only return certificate-key pairs with keys
- in: query
name: has_key
schema:
type: string
type: boolean
description: Only return certificate-key pairs with keys
- in: query
name: include_details
schema: