From 7dcbbd95b6eca1762fefb54c394e1288421df732 Mon Sep 17 00:00:00 2001 From: Andrea Franchini <hello@andreafranchini.com> Date: Thu, 23 Mar 2023 14:48:44 +0100 Subject: [PATCH] fix gateways bug, domlr was using hardcoded version --- .vscode/launch.json | 5 ++--- mc_openapi/handlers.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 07b18dd..01d7627 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,8 +2,9 @@ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", + "version": "2.2.1", "configurations": [ + { "name": "Python: MC Synthesis", "type": "python", @@ -11,8 +12,6 @@ "module": "mc_openapi", "justMyCode": true, "args": [ - "-d", "tests/doml/openstack_template.domlx", - "--synth" ] } ] diff --git a/mc_openapi/handlers.py b/mc_openapi/handlers.py index 0b71b79..d8d0477 100644 --- a/mc_openapi/handlers.py +++ b/mc_openapi/handlers.py @@ -39,7 +39,7 @@ def post(body, version=None): if (dmc.doml_version == DOMLVersion.V2_2 or dmc.doml_version == DOMLVersion.V2_2_1): domlr_parser = Parser(DOMLRTransformer) - model = get_pyecore_model(doml_xmi, DOMLVersion.V2_2) + model = get_pyecore_model(doml_xmi, dmc.doml_version) func_reqs = model.functionalRequirements.items user_req_store = RequirementStore() -- GitLab