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( @extend_schema(
parameters=[ 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), OpenApiParameter("include_details", bool, default=True),
] ]
) )

View File

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