From 9382b8d0ea97e360c1b5f44a9078f6403aea0815 Mon Sep 17 00:00:00 2001 From: Valbou Date: Tue, 17 Oct 2023 16:40:10 +0200 Subject: [PATCH] #13 Update Openapi version --- tests/base/hmi/flask/test_routes.py | 2 +- vtaskr/libs/openapi/templates/openapi.json.jinja2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/base/hmi/flask/test_routes.py b/tests/base/hmi/flask/test_routes.py index dbf081fd..c3010b55 100644 --- a/tests/base/hmi/flask/test_routes.py +++ b/tests/base/hmi/flask/test_routes.py @@ -23,4 +23,4 @@ def test_api_documentation(self): response = self.client.get("/documentation") self.assertEqual(response.status_code, 200) self.assertEqual(response.content_type, "application/json") - self.assertIn('"openapi": "3.0.3"', response.text) + self.assertIn('"openapi": "3.1.0"', response.text) diff --git a/vtaskr/libs/openapi/templates/openapi.json.jinja2 b/vtaskr/libs/openapi/templates/openapi.json.jinja2 index 7eb5402e..ebd16e98 100644 --- a/vtaskr/libs/openapi/templates/openapi.json.jinja2 +++ b/vtaskr/libs/openapi/templates/openapi.json.jinja2 @@ -1,5 +1,5 @@ { - "openapi": "3.0.3", + "openapi": "3.1.0", "info": {{ openapi.infos|tojson }}, "servers": [ {% for server in openapi.servers %}