You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regenerating JSON import introduces model error #1734
I have this microflow: mdl 1; create or modify microflow ExamplesModule.ACT_import () begin @start(85, 200) @position(225, 200) declare $Variable String = ''; @position(449, 200) $Root = import from mapping ExamplesModule.Import_mapping_2($Variable); @position(700, 200) return; end;
When I re-execute this, with a minor change - e.g. position, or rename $Root to $Root2 (otherwise no change is carried out), I get the modeler error CE0243 - The mapping used to return a value of type 'List of ExamplesModule.Root', but now returns a value of type 'ExamplesModule.Root'. Open the action and click OK if this was intended.
After clicking OK the error is gone. However, the error is strange as in the original flow the mapping also returned a value of type ExamplesModule.Root
For completeness the import mapping: mdl 1; create or modify import mapping ExamplesModule.Import_mapping_2 folder 'Resources' with json structure ExamplesModule.JSON_structure_2 { create ExamplesModule.Root { create ExamplesModule.JsonObject_Root/ExamplesModule.JsonObject = JsonObject { CurveNumber = curveNumber, PointNumber = pointNumber, PointIndex = pointIndex, X = x, Y = y } } };
and the JSON structure: mdl 1; create or modify json structure ExamplesModule.JSON_structure_2 folder 'Resources' sample $$[ { "curveNumber": 3, "pointNumber": 5, "pointIndex": 5, "x": "2024-04-15", "y": 1 } ]$$;
Activity
Merge pull request mendixlabs#1734 from ako/fix/1699-hidden-member-ac…