mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 10:31:06 +03:00 
			
		
		
		
	Add JSONLint schema
This commit is contained in:
		
							parent
							
								
									6e5f68d3b7
								
							
						
					
					
						commit
						9c0039d121
					
				
							
								
								
									
										34
									
								
								.jsonlintschema
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.jsonlintschema
									
									
									
									
									
										Normal 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 | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @ -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" | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user