diff --git a/.vscode/launch.json b/.vscode/launch.json index 07b18dd254201ea8bb522d1fb986dc0a091ad5c2..01d7627e01ac955855c3589b39134b98e8dd511a 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 0b71b79982677e81dcbf6e24156a3c867f30f474..d8d04772a59b0d038f08035d2bc4e437a7631218 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()