Source code
Revision control
Copy as Markdown
Other Tools
[
{
"comment": "empty object",
"test": {}
},
{
"comment": "missing type",
"test": {
"title": "No Type",
"links": [
{
}
]
}
},
{
"comment": "missing title",
"test": {
"type": "tabs",
"links": [
{
}
]
}
},
{
"comment": "missing links",
"test": {
"type": "tabs",
"title": "No Links"
}
},
{
"comment": "empty links array",
"test": {
"type": "tabs",
"title": "Empty Links",
"links": []
}
},
{
"comment": "invalid URL",
"test": {
"type": "tabs",
"title": "FTP Link",
"links": [
{
}
]
}
},
{
"comment": "title too long",
"test": {
"type": "tabs",
"title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": [
{
"title": "Example"
}
]
}
},
{
"comment": "link title too long",
"test": {
"type": "tabs",
"title": "a",
"links": [
{
"title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
}
},
{
"comment": "incorrect type",
"test": {
"type": "bad type",
"title": "Title",
"links": [
{
"title": "Example"
}
]
}
},
{
"comment": "Extra property",
"test": {
"type": "tabs",
"title": "Extra Prop",
"links": [
{
"title": "Example"
}
],
"extra": "not allowed"
}
},
{
"comment": "Extra property on Bookmark",
"test": {
"type": "bookmarks",
"title": "Folder Extra Prop",
"links": [
{
"type": "bookmarks",
"title": "Bad Folder",
"links": [
{
"title": "Example"
}
],
"extra": "not allowed"
}
]
}
},
{
"comment": "Wrong type for title (number)",
"test": {
"type": "tabs",
"title": 42,
"links": [
{
"title": "Example"
}
]
}
},
{
"comment": "Wrong type for links (object instead of array)",
"test": {
"type": "tabs",
"title": "Wrong Links Type",
"links": {
"title": "Example"
}
}
},
{
"comment": "Link missing required url",
"test": {
"type": "tabs",
"title": "No URL",
"links": [
{
"title": "Missing URL"
}
]
}
},
{
"comment": "Link missing required title",
"test": {
"type": "tabs",
"title": "No title",
"links": [
{
}
]
}
},
{
"comment": "links exceeding maxItems",
"test": {
"type": "tabs",
"title": "Too Many Links",
"links": [
{
"title": "Example 0"
},
{
"title": "Example 1"
},
{
"title": "Example 2"
},
{
"title": "Example 3"
},
{
"title": "Example 4"
},
{
"title": "Example 5"
},
{
"title": "Example 6"
},
{
"title": "Example 7"
},
{
"title": "Example 8"
},
{
"title": "Example 9"
},
{
"title": "Example 10"
},
{
"title": "Example 11"
},
{
"title": "Example 12"
},
{
"title": "Example 13"
},
{
"title": "Example 14"
},
{
"title": "Example 15"
},
{
"title": "Example 16"
},
{
"title": "Example 17"
},
{
"title": "Example 18"
},
{
"title": "Example 19"
},
{
"title": "Example 20"
},
{
"title": "Example 21"
},
{
"title": "Example 22"
},
{
"title": "Example 23"
},
{
"title": "Example 24"
},
{
"title": "Example 25"
},
{
"title": "Example 26"
},
{
"title": "Example 27"
},
{
"title": "Example 28"
},
{
"title": "Example 29"
},
{
"title": "Example 30"
},
{
"title": "Example 31"
},
{
"title": "Example 32"
},
{
"title": "Example 33"
},
{
"title": "Example 34"
},
{
"title": "Example 35"
},
{
"title": "Example 36"
},
{
"title": "Example 37"
},
{
"title": "Example 38"
},
{
"title": "Example 39"
},
{
"title": "Example 40"
},
{
"title": "Example 41"
},
{
"title": "Example 42"
},
{
"title": "Example 43"
},
{
"title": "Example 44"
},
{
"title": "Example 45"
},
{
"title": "Example 46"
},
{
"title": "Example 47"
},
{
"title": "Example 48"
},
{
"title": "Example 49"
},
{
"title": "Example 50"
},
{
"title": "Example 51"
},
{
"title": "Example 52"
},
{
"title": "Example 53"
},
{
"title": "Example 54"
},
{
"title": "Example 55"
},
{
"title": "Example 56"
},
{
"title": "Example 57"
},
{
"title": "Example 58"
},
{
"title": "Example 59"
},
{
"title": "Example 60"
},
{
"title": "Example 61"
},
{
"title": "Example 62"
},
{
"title": "Example 63"
},
{
"title": "Example 64"
},
{
"title": "Example 65"
},
{
"title": "Example 66"
},
{
"title": "Example 67"
},
{
"title": "Example 68"
},
{
"title": "Example 69"
},
{
"title": "Example 70"
},
{
"title": "Example 71"
},
{
"title": "Example 72"
},
{
"title": "Example 73"
},
{
"title": "Example 74"
},
{
"title": "Example 75"
},
{
"title": "Example 76"
},
{
"title": "Example 77"
},
{
"title": "Example 78"
},
{
"title": "Example 79"
},
{
"title": "Example 80"
},
{
"title": "Example 81"
},
{
"title": "Example 82"
},
{
"title": "Example 83"
},
{
"title": "Example 84"
},
{
"title": "Example 85"
},
{
"title": "Example 86"
},
{
"title": "Example 87"
},
{
"title": "Example 88"
},
{
"title": "Example 89"
},
{
"title": "Example 90"
},
{
"title": "Example 91"
},
{
"title": "Example 92"
},
{
"title": "Example 93"
},
{
"title": "Example 94"
},
{
"title": "Example 95"
},
{
"title": "Example 96"
},
{
"title": "Example 97"
},
{
"title": "Example 98"
},
{
"title": "Example 99"
},
{
"title": "Example 100"
}
]
}
},
{
"comment": "nested links exceeding maxItems",
"test": {
"type": "bookmarks",
"title": "Too Many Links",
"links": [
{
"type": "bookmarks",
"title": "Nested Folder",
"links": [
{
"title": "Example 0"
},
{
"title": "Example 1"
},
{
"title": "Example 2"
},
{
"title": "Example 3"
},
{
"title": "Example 4"
},
{
"title": "Example 5"
},
{
"title": "Example 6"
},
{
"title": "Example 7"
},
{
"title": "Example 8"
},
{
"title": "Example 9"
},
{
"title": "Example 10"
},
{
"title": "Example 11"
},
{
"title": "Example 12"
},
{
"title": "Example 13"
},
{
"title": "Example 14"
},
{
"title": "Example 15"
},
{
"title": "Example 16"
},
{
"title": "Example 17"
},
{
"title": "Example 18"
},
{
"title": "Example 19"
},
{
"title": "Example 20"
},
{
"title": "Example 21"
},
{
"title": "Example 22"
},
{
"title": "Example 23"
},
{
"title": "Example 24"
},
{
"title": "Example 25"
},
{
"title": "Example 26"
},
{
"title": "Example 27"
},
{
"title": "Example 28"
},
{
"title": "Example 29"
},
{
"title": "Example 30"
},
{
"title": "Example 31"
},
{
"title": "Example 32"
},
{
"title": "Example 33"
},
{
"title": "Example 34"
},
{
"title": "Example 35"
},
{
"title": "Example 36"
},
{
"title": "Example 37"
},
{
"title": "Example 38"
},
{
"title": "Example 39"
},
{
"title": "Example 40"
},
{
"title": "Example 41"
},
{
"title": "Example 42"
},
{
"title": "Example 43"
},
{
"title": "Example 44"
},
{
"title": "Example 45"
},
{
"title": "Example 46"
},
{
"title": "Example 47"
},
{
"title": "Example 48"
},
{
"title": "Example 49"
},
{
"title": "Example 50"
},
{
"title": "Example 51"
},
{
"title": "Example 52"
},
{
"title": "Example 53"
},
{
"title": "Example 54"
},
{
"title": "Example 55"
},
{
"title": "Example 56"
},
{
"title": "Example 57"
},
{
"title": "Example 58"
},
{
"title": "Example 59"
},
{
"title": "Example 60"
},
{
"title": "Example 61"
},
{
"title": "Example 62"
},
{
"title": "Example 63"
},
{
"title": "Example 64"
},
{
"title": "Example 65"
},
{
"title": "Example 66"
},
{
"title": "Example 67"
},
{
"title": "Example 68"
},
{
"title": "Example 69"
},
{
"title": "Example 70"
},
{
"title": "Example 71"
},
{
"title": "Example 72"
},
{
"title": "Example 73"
},
{
"title": "Example 74"
},
{
"title": "Example 75"
},
{
"title": "Example 76"
},
{
"title": "Example 77"
},
{
"title": "Example 78"
},
{
"title": "Example 79"
},
{
"title": "Example 80"
},
{
"title": "Example 81"
},
{
"title": "Example 82"
},
{
"title": "Example 83"
},
{
"title": "Example 84"
},
{
"title": "Example 85"
},
{
"title": "Example 86"
},
{
"title": "Example 87"
},
{
"title": "Example 88"
},
{
"title": "Example 89"
},
{
"title": "Example 90"
},
{
"title": "Example 91"
},
{
"title": "Example 92"
},
{
"title": "Example 93"
},
{
"title": "Example 94"
},
{
"title": "Example 95"
},
{
"title": "Example 96"
},
{
"title": "Example 97"
},
{
"title": "Example 98"
},
{
"title": "Example 99"
}
]
}
]
}
},
{
"comment": "Bookmark nested links exceeding maxItems. The total length is 102 in this case",
"test": {
"type": "bookmarks",
"title": "Folder Too Many",
"links": [
{
"title": "Example 0"
},
{
"type": "bookmarks",
"title": "Nested Folder 1",
"links": [
{
"title": "Example 1"
}
]
},
{
"title": "Example 2"
},
{
"type": "bookmarks",
"title": "Nested Folder 3",
"links": [
{
"title": "Example 3"
}
]
},
{
"title": "Example 4"
},
{
"type": "bookmarks",
"title": "Nested Folder 5",
"links": [
{
"title": "Example 5"
}
]
},
{
"title": "Example 6"
},
{
"type": "bookmarks",
"title": "Nested Folder 7",
"links": [
{
"title": "Example 7"
}
]
},
{
"title": "Example 8"
},
{
"type": "bookmarks",
"title": "Nested Folder 9",
"links": [
{
"title": "Example 9"
}
]
},
{
"title": "Example 10"
},
{
"type": "bookmarks",
"title": "Nested Folder 11",
"links": [
{
"title": "Example 11"
}
]
},
{
"title": "Example 12"
},
{
"type": "bookmarks",
"title": "Nested Folder 13",
"links": [
{
"title": "Example 13"
}
]
},
{
"title": "Example 14"
},
{
"type": "bookmarks",
"title": "Nested Folder 15",
"links": [
{
"title": "Example 15"
}
]
},
{
"title": "Example 16"
},
{
"type": "bookmarks",
"title": "Nested Folder 17",
"links": [
{
"title": "Example 17"
}
]
},
{
"title": "Example 18"
},
{
"type": "bookmarks",
"title": "Nested Folder 19",
"links": [
{
"title": "Example 19"
}
]
},
{
"title": "Example 20"
},
{
"type": "bookmarks",
"title": "Nested Folder 21",
"links": [
{
"title": "Example 21"
}
]
},
{
"title": "Example 22"
},
{
"type": "bookmarks",
"title": "Nested Folder 23",
"links": [
{
"title": "Example 23"
}
]
},
{
"title": "Example 24"
},
{
"type": "bookmarks",
"title": "Nested Folder 25",
"links": [
{
"title": "Example 25"
}
]
},
{
"title": "Example 26"
},
{
"type": "bookmarks",
"title": "Nested Folder 27",
"links": [
{
"title": "Example 27"
}
]
},
{
"title": "Example 28"
},
{
"type": "bookmarks",
"title": "Nested Folder 29",
"links": [
{
"title": "Example 29"
}
]
},
{
"title": "Example 30"
},
{
"type": "bookmarks",
"title": "Nested Folder 31",
"links": [
{
"title": "Example 31"
}
]
},
{
"title": "Example 32"
},
{
"type": "bookmarks",
"title": "Nested Folder 33",
"links": [
{
"title": "Example 33"
}
]
},
{
"title": "Example 34"
},
{
"type": "bookmarks",
"title": "Nested Folder 35",
"links": [
{
"title": "Example 35"
}
]
},
{
"title": "Example 36"
},
{
"type": "bookmarks",
"title": "Nested Folder 37",
"links": [
{
"title": "Example 37"
}
]
},
{
"title": "Example 38"
},
{
"type": "bookmarks",
"title": "Nested Folder 39",
"links": [
{
"title": "Example 39"
}
]
},
{
"title": "Example 40"
},
{
"type": "bookmarks",
"title": "Nested Folder 41",
"links": [
{
"title": "Example 41"
}
]
},
{
"title": "Example 42"
},
{
"type": "bookmarks",
"title": "Nested Folder 43",
"links": [
{
"title": "Example 43"
}
]
},
{
"title": "Example 44"
},
{
"type": "bookmarks",
"title": "Nested Folder 45",
"links": [
{
"title": "Example 45"
}
]
},
{
"title": "Example 46"
},
{
"type": "bookmarks",
"title": "Nested Folder 47",
"links": [
{
"title": "Example 47"
}
]
},
{
"title": "Example 48"
},
{
"type": "bookmarks",
"title": "Nested Folder 49",
"links": [
{
"title": "Example 49"
}
]
},
{
"title": "Example 50"
},
{
"type": "bookmarks",
"title": "Nested Folder 51",
"links": [
{
"title": "Example 51"
}
]
},
{
"title": "Example 52"
},
{
"type": "bookmarks",
"title": "Nested Folder 53",
"links": [
{
"title": "Example 53"
}
]
},
{
"title": "Example 54"
},
{
"type": "bookmarks",
"title": "Nested Folder 55",
"links": [
{
"title": "Example 55"
}
]
},
{
"title": "Example 56"
},
{
"type": "bookmarks",
"title": "Nested Folder 57",
"links": [
{
"title": "Example 57"
}
]
},
{
"title": "Example 58"
},
{
"type": "bookmarks",
"title": "Nested Folder 59",
"links": [
{
"title": "Example 59"
}
]
},
{
"title": "Example 60"
},
{
"type": "bookmarks",
"title": "Nested Folder 61",
"links": [
{
"title": "Example 61"
}
]
},
{
"title": "Example 62"
},
{
"type": "bookmarks",
"title": "Nested Folder 63",
"links": [
{
"title": "Example 63"
}
]
},
{
"title": "Example 64"
},
{
"type": "bookmarks",
"title": "Nested Folder 65",
"links": [
{
"title": "Example 65"
}
]
},
{
"title": "Example 66"
},
{
"type": "bookmarks",
"title": "Nested Folder 67",
"links": [
{
"title": "Example 67"
}
]
}
]
}
}
]