Skip to content

Enhancement - Add an option to use a JSON document as the source model in the Playground #53

@viht0ri

Description

@viht0ri

It would be nice to allow transformations from JSON documents to models in the playground. While the backend already supports receiving a JSON document under the json field of the request payload, the frontend code path always populates the flexmi and emfatic fields.

function editorsToJsonObject() {
return {
"language": language,
"outputType": outputType,
"outputLanguage": outputLanguage,
"program": programPanel.getValue(),
"secondProgram": secondProgramPanel.getValue(),
"emfatic": firstMetamodelPanel.getValue(),
"flexmi": firstModelPanel.getValue(),
"secondEmfatic": secondMetamodelPanel.getValue(),
"secondFlexmi": secondModelPanel.getValue(),
"thirdEmfatic": thirdMetamodelPanel.getValue(),
"thirdFlexmi": thirdModelPanel.getValue()
};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions