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(
|
@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),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Reference in New Issue