dukeboard / kevoree-modeling-framework

Kevoree Modeling Framework
http://kevoree.org/kmf
GNU Lesser General Public License v3.0
37 stars 7 forks source link

References in JSON syntax #21

Closed brice-morin closed 11 years ago

brice-morin commented 11 years ago

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...

dukeboard commented 11 years ago

Fix in the trunk The syntax is more concise now