1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00
simple-icons/.jsonlintschema
Eric Cornelissen b9ca77b19e Increase specificity of source URL pattern for JSONLint (#1502)
* Increase specificity of source URL pattern for JSONLint

... to catch issues such as in #1494

* Temporary reversion of 7704018 for testing

* Revert e44bf83

* Reduce JSON schema url pattern specifity to just not allowing spaces

* Temporary reversion of 7704018 for testing

* Revert aa805e0a
2019-07-03 23:37:06 +02:00

35 lines
1.1 KiB
Plaintext

{
"title": "Simple Icons",
"type": "object",
"properties": {
"icons": {
"description": "The list of 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?://[^\\s]+$",
"required": true
}
},
"required": true
}
}
}
}