Merge pull request #529 from birjolaxew/fix/#528

Add JSONLint schema
This commit is contained in:
Johan Fagerberg 2017-09-13 16:49:31 +02:00 committed by GitHub
commit f15a8af990
3 changed files with 54 additions and 20 deletions

34
.jsonlintschema Normal file
View File

@ -0,0 +1,34 @@
{
"title": "SimpleIcons icons",
"type": "object",
"properties": {
"icons": {
"description": "The actual icons",
"type": "array",
"items": {
"description": "A single icon",
"type": "object",
"properties": {
"title": {
"description": "The icons name",
"type": "string",
"required": true
},
"hex": {
"description": "The icons color, as HEX (without #)",
"type": "string",
"pattern": "^[0-9A-F]{6}$",
"required": true
},
"source": {
"description": "The website from which the icon originated",
"type": "string",
"pattern": "^https?://",
"required": true
}
},
"required": true
}
}
}
}

View File

@ -123,7 +123,7 @@
{ {
"title": "Bath ASU", "title": "Bath ASU",
"hex": "00A3E0", "hex": "00A3E0",
"source": "" "source": "https://bathasu.com/press/"
}, },
{ {
"title": "Bebo", "title": "Bebo",
@ -203,12 +203,12 @@
{ {
"title": "Codecademy", "title": "Codecademy",
"hex": "204056", "hex": "204056",
"source": "" "source": "https://www.codecademy.com/"
}, },
{ {
"title": "Codeforces", "title": "Codeforces",
"hex": "1F8ACB", "hex": "1F8ACB",
"source": "" "source": "http://codeforces.com/"
}, },
{ {
"title": "CodeIgniter", "title": "CodeIgniter",
@ -448,7 +448,7 @@
{ {
"title": "Gauges", "title": "Gauges",
"hex": "339966", "hex": "339966",
"source": "" "source": "http://get.gaug.es/"
}, },
{ {
"title": "Geeklist", "title": "Geeklist",
@ -488,7 +488,7 @@
{ {
"title": "Gitter", "title": "Gitter",
"hex": "FF0064", "hex": "FF0064",
"source": "" "source": "https://gitter.im/"
}, },
{ {
"title": "Glassdoor", "title": "Glassdoor",
@ -513,7 +513,7 @@
{ {
"title": "Goodreads", "title": "Goodreads",
"hex": "663300", "hex": "663300",
"source": "" "source": "https://www.goodreads.com/about/press"
}, },
{ {
"title": "Google", "title": "Google",
@ -673,7 +673,7 @@
{ {
"title": "Instapaper", "title": "Instapaper",
"hex": "1F1F1F", "hex": "1F1F1F",
"source": "" "source": "https://www.instapaper.com/"
}, },
{ {
"title": "Intel", "title": "Intel",
@ -873,7 +873,7 @@
{ {
"title": "Meetup", "title": "Meetup",
"hex": "E2373C", "hex": "E2373C",
"source": "" "source": "https://www.meetup.com/help/customer/portal/articles/1802998-promotional-materials-for-your-meetup/"
}, },
{ {
"title": "Messenger", "title": "Messenger",
@ -888,7 +888,7 @@
{ {
"title": "Microgenetics", "title": "Microgenetics",
"hex": "FF0000", "hex": "FF0000",
"source": "" "source": "http://microgenetics.co.uk/"
}, },
{ {
"title": "Microsoft", "title": "Microsoft",
@ -928,7 +928,7 @@
{ {
"title": "Minecraft", "title": "Minecraft",
"hex": "62B74A", "hex": "62B74A",
"source": "" "source": "https://minecraft.net/"
}, },
{ {
"title": "Minutemailer", "title": "Minutemailer",
@ -1133,7 +1133,7 @@
{ {
"title": "Podcasts", "title": "Podcasts",
"hex": "9933CC", "hex": "9933CC",
"source": "" "source": "https://www.apple.com/itunes/marketing-on-podcasts/identity-guidelines.html#apple-podcasts-icon"
}, },
{ {
"title": "Prismic", "title": "Prismic",
@ -1223,7 +1223,7 @@
{ {
"title": "Ruby", "title": "Ruby",
"hex": "CC342D", "hex": "CC342D",
"source": "" "source": "https://www.ruby-lang.org/en/about/logo/"
}, },
{ {
"title": "Runkeeper", "title": "Runkeeper",
@ -1243,7 +1243,7 @@
{ {
"title": "Sauce Labs", "title": "Sauce Labs",
"hex": "E2231A", "hex": "E2231A",
"source": "" "source": "https://saucelabs.com/"
}, },
{ {
"title": "Scribd", "title": "Scribd",
@ -1263,7 +1263,7 @@
{ {
"title": "Sentia Yoga", "title": "Sentia Yoga",
"hex": "4CAF50", "hex": "4CAF50",
"source": "" "source": "http://sentiayoga.com/"
}, },
{ {
"title": "Sentry", "title": "Sentry",
@ -1288,7 +1288,7 @@
{ {
"title": "Simple Icons", "title": "Simple Icons",
"hex": "111111", "hex": "111111",
"source": "" "source": "https://simpleicons.org/"
}, },
{ {
"title": "Sina Weibo", "title": "Sina Weibo",
@ -1333,7 +1333,7 @@
{ {
"title": "Smashing Magazine", "title": "Smashing Magazine",
"hex": "E85C33", "hex": "E85C33",
"source": "" "source": "https://www.smashingmagazine.com/"
}, },
{ {
"title": "Snapchat", "title": "Snapchat",
@ -1368,7 +1368,7 @@
{ {
"title": "Speaker Deck", "title": "Speaker Deck",
"hex": "339966", "hex": "339966",
"source": "" "source": "https://speakerdeck.com/"
}, },
{ {
"title": "Spotify", "title": "Spotify",
@ -1418,7 +1418,7 @@
{ {
"title": "Stitcher", "title": "Stitcher",
"hex": "000000", "hex": "000000",
"source": "" "source": "https://www.stitcher.com/"
}, },
{ {
"title": "Storify", "title": "Storify",
@ -1518,7 +1518,7 @@
{ {
"title": "Topcoder", "title": "Topcoder",
"hex": "29A8E0", "hex": "29A8E0",
"source": "" "source": "http://topcoder.com/"
}, },
{ {
"title": "Toptal", "title": "Toptal",

View File

@ -15,6 +15,6 @@
"jsonlint": "^1.6.2" "jsonlint": "^1.6.2"
}, },
"scripts": { "scripts": {
"jsonlint": "jsonlint _data/simple-icons.json -q" "jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema"
} }
} }