From ba6fdc3083c91225e8252178fc041ba0488d7e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1o=20Stanovnik?= Date: Mon, 17 May 2021 11:27:54 +0200 Subject: [PATCH] Fix an incorrectly passed parameter type. --- openapi-spec.yml | 2 +- src/opera/api/controllers/default.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi-spec.yml b/openapi-spec.yml index e9facf8..46b19f6 100644 --- a/openapi-spec.yml +++ b/openapi-spec.yml @@ -1,6 +1,6 @@ openapi: "3.0.0" info: - version: 0.4.0 + version: 0.4.2 title: xOpera API license: name: Apache-2.0 diff --git a/src/opera/api/controllers/default.py b/src/opera/api/controllers/default.py index 5eb867d..b880acb 100644 --- a/src/opera/api/controllers/default.py +++ b/src/opera/api/controllers/default.py @@ -83,7 +83,7 @@ def validate(body: DeploymentInput = None): result = ValidationResult() try: - opera_validate(deployment_input.service_template, deployment_input.inputs) + opera_validate(PurePath(deployment_input.service_template), deployment_input.inputs) result.success = True except Exception as e: result.success = False