From 960a2aab74d9643b020ac32a5539096e04ba35eb Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 1 Jan 2023 23:14:19 +0100 Subject: [PATCH] crypto: fix type for has_key Signed-off-by: Jens Langhammer --- authentik/crypto/api.py | 7 +++++++ schema.yml | 9 ++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/authentik/crypto/api.py b/authentik/crypto/api.py index aab6ae09f..88fe2153e 100644 --- a/authentik/crypto/api.py +++ b/authentik/crypto/api.py @@ -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), ] ) diff --git a/schema.yml b/schema.yml index b21de6262..28a354a69 100644 --- a/schema.yml +++ b/schema.yml @@ -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: