dukeboard/kevoree-modeling-framework

References in JSON syntax

Closed this issue · 1 comments

The users of my generated JSON syntax for my language are not quite satisfied with the way references are managed... Instead of writing:

"required": [{"ref" : "artefactTypes[derby]/provided[derbyProvided]"} ,
    {"ref" : "artefactTypes[jboss]/provided[wcProvided]"}
]

they would like to write:

"required": ["artefactTypes[derby]/provided[derbyProvided]", "artefactTypes[jboss]/provided[wcProvided]"]

In a perfect world, they would even like to write

"required": ["derby/derbyProvided", "jboss/wcProvided"]

but this might get more tricky/inefficient to parse...

Fix in the trunk
The syntax is more concise now