crypto: fix type for has_key
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2cae6596eb
commit
960a2aab74
|
@ -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),
|
||||
]
|
||||
)
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue