Last active
December 25, 2015 14:09
-
-
Save geraintluff/6988554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Ellipsis", | |
"description": "Placeholder for items that are not present in a preview list, but are expected to be present in the actual list.", | |
"type": "object", | |
"properties": { | |
"...": { | |
"type": ["integer", "null"], | |
"minimum": 1 | |
}, | |
"total": { | |
"type": "integer", | |
"minimum": 0 | |
} | |
}, | |
"required": ["..."] | |
} |
Note that this would be intended for use in combination with a rel="full"
link.
In the above examples, there is presumably a rel="full"
link for the "contributers"
property, and a link for each entry in the "teams"
array.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example uses (inside other objects):
The idea is that positional information can included in the preview - we know that the previewed contributers are the first two in the list, and that Rudolph is the last reindeer. However, we do not know the position of "Dasher" within the list.
A client can use this information to represent the previews in a meaningful way, e.g.: