Open mttrbrts opened 1 month ago
How do we setup target for setting decorator on a model namespace? My assumption was target would look like this.
{
"$class": "org.accordproject.decoratorcommands@0.3.0.Command",
"type": "UPSERT",
"target": {
"$class": "org.accordproject.decoratorcommands@0.3.0.CommandTarget",
"namespace": "test@1.0.0"
}
But when I tried it out in code. It just applied the decorator on top of all the declarations and not on the namespace. https://replit.com/@sanketshevkar/AccordProjectConcerto-Decorator-Command-Set#index.js
Bug Report 🐛
The following model definition is valid...
When applying the
extract-decorators
commandProduces a vocabulary file:
Expected Behavior
I would expect a vocabulary file such as this:
Possible Solution
@accordproject/concerto-vocabulary
package should be updated to support namespace-scoped decorators