Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Move enumerations to enumerations attribute in enum #28

Merged
merged 1 commit into from
Jul 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions docs/element-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -817,14 +817,16 @@ Enumeration type. Exclusive list of possible elements. The elements in content's
#### Properties

- `element`: enum (string, fixed)
- `content` (array[[Data Structure Element][]])
- `attributes`
- `enumerations` (Array Element[[Data Structure Element][]])
- `content` ([Data Structure Element][])

#### Examples

##### MSON

```
- tag (enum[string])
- tag: green (enum[string])
- red
- green
```
Expand All @@ -844,16 +846,21 @@ Enumeration type. Exclusive list of possible elements. The elements in content's
},
"value": {
"element": "enum",
"content": [
{
"element": "string",
"content": "red"
},
{
"element": "string",
"content": "green"
"attributes": {
"enumerations": {
"element": "array",
"content": [
{
"element": "string",
"content": "red"
},
{
"element": "string",
"content": "green"
}
]
}
]
}
}
}
}
Expand Down