Skip to content

Commit

Permalink
test(*): decorators on map top level and props
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-casey committed Apr 27, 2023
1 parent 24ba458 commit 526370e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/concerto-cto/test/cto/map.cto
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ map StateMachine {
o String
}

@Foo("Alexandria")
map Library {
@Bar()
o String
@Baz()
o Dictionary
}

Expand Down
30 changes: 28 additions & 2 deletions packages/concerto-cto/test/cto/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,37 @@
"properties": [
{
"$class": "[email protected]",
"name": "String"
"name": "String",
"decorators": [
{
"$class": "[email protected]",
"name": "Bar",
"arguments": []
}
]
},
{
"$class": "[email protected]",
"name": "Dictionary"
"name": "Dictionary",
"decorators": [
{
"$class": "[email protected]",
"name": "Baz",
"arguments": []
}
]
}
],
"decorators": [
{
"$class": "[email protected]",
"name": "Foo",
"arguments": [
{
"$class": "[email protected]",
"value": "Alexandria"
}
]
}
]
},
Expand Down

0 comments on commit 526370e

Please sign in to comment.