1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-26 01:13:41 +02:00

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

View File

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