From dfc5c8421aef5dd5b30d6d63e3512e68bf7ae253 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 17 Jun 2021 19:05:35 +0200 Subject: [PATCH] change testoutput format --- auth.py | 2 +- openapi.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.py b/auth.py index c088db0..41be2e7 100755 --- a/auth.py +++ b/auth.py @@ -23,6 +23,6 @@ def decodeToken(token): def testToken(user, token_info): return { "message": f"You are user_id {user} and the provided token has been signed by this issuers. Fine.", - "details": token_info + "details": JSON.stringify(token_info) } diff --git a/openapi.yaml b/openapi.yaml index 3e7ecc5..d15d806 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -43,4 +43,4 @@ components: message: type: string details: - type: object + type: string