From cbe5783ac038dca3bf0f28f46f2ac82ebcfd5304 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Thu, 6 May 2021 03:03:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20correct=20version=20in=20s?= =?UTF-8?q?wagger.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/backend/nest_backend/api_spec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/backend/nest_backend/api_spec.py b/code/backend/nest_backend/api_spec.py index 3a883b4..3c38860 100644 --- a/code/backend/nest_backend/api_spec.py +++ b/code/backend/nest_backend/api_spec.py @@ -5,11 +5,12 @@ from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin from apispec_webframeworks.flask import FlaskPlugin from api_schemas import * +import pkg_resources # Create an APISpec spec = APISpec( title="N.E.S.T.", - version="S2-1", + version=pkg_resources.get_distribution("nest_backend").version, openapi_version="3.0.2", plugins=[FlaskPlugin(), MarshmallowPlugin()], )