Skip to content

Commit

Permalink
Merge pull request #30 from apiaryio/pksunkara/samples-default
Browse files Browse the repository at this point in the history
Samples and Default should be of type element
  • Loading branch information
kylef committed Nov 23, 2017
2 parents 667e0b2 + 32d784c commit c5a10d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/element-definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,11 @@ Note: In Data Structure Refract _Nested Member Types_ _Type Section_ is the `con

- `samples` (Array Element) - Array of alternative sample values for _Member Types_

The type of items in `samples` array attribute MUST match the type of element's `content`.
The type of items in `samples` array attribute MUST match the type of element.

- `default` ([Element][]) - Default value for _Member Types_

The type of of `default` attribute MUST match the type of element's `content`.
The type of of `default` attribute MUST match the type of element.

- `validation` - Not used, reserved for a future use

Expand Down Expand Up @@ -1295,7 +1295,7 @@ Description is here! Properties to follow.
##### MSON

```markdown
- p: *42*
- p: *42* (number)
```

##### Data Structure Refract
Expand All @@ -1312,7 +1312,7 @@ Description is here! Properties to follow.
"content": "p"
},
"value": {
"element": "string",
"element": "number",
"attributes": {
"samples": {
"element": "array",
Expand Down

0 comments on commit c5a10d8

Please sign in to comment.