2022-12-10 07:58:13 -03:00
{
2024-01-18 17:44:21 +01:00
"$schema" : "http://json-schema.org/draft-07/schema" ,
"definitions" : {
"IconVersions" : {
"type" : "string" ,
"enum" : [
"original" ,
"plain" ,
"line" ,
"original-wordmark" ,
"plain-wordmark" ,
"line-wordmark"
]
} ,
"IconVersionsArray" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/IconVersions"
}
2022-12-10 07:58:13 -03:00
}
2024-01-18 17:44:21 +01:00
} ,
"type" : "array" ,
"items" : {
2022-12-10 07:58:13 -03:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2024-01-18 17:44:21 +01:00
"name" : {
"type" : "string" ,
"title" : "The official name of the technology." ,
"description" : "Pattern: Only lower-case letters and digits." ,
"pattern" : "^(dot-net|[0-9a-z]+)$"
2022-12-10 07:58:13 -03:00
} ,
2024-01-18 17:44:21 +01:00
"altnames" : {
"type" : "array" ,
"title" : "List of alternative names for this technology." ,
"description" : "Used for the searchbar on the Devicon website. https://devicon.dev" ,
"uniqueItems" : true ,
"items" : {
"type" : "string"
2022-12-10 07:58:13 -03:00
}
} ,
2024-01-18 17:44:21 +01:00
"tags" : {
"type" : "array" ,
"title" : "List of tags relating to the technology for categorization/search purpose." ,
"$ref" : "./tags-enum.json/#/definitions/Tags"
2022-12-10 07:58:13 -03:00
} ,
2024-01-18 17:44:21 +01:00
"versions" : {
"title" : "Keeps track of the different versions that you have." ,
"type" : "object" ,
"additionalProperties" : false ,
2022-12-10 07:58:13 -03:00
"properties" : {
2024-01-18 17:44:21 +01:00
"svg" : {
"title" : "List all the SVGs that you have." ,
"contains" : {
"$ref" : "#/definitions/IconVersions"
} ,
"minItems" : 1 ,
"uniqueItems" : true ,
"$ref" : "#/definitions/IconVersionsArray"
} ,
"font" : {
"title" : "List only the SVGs that can be converted to fonts. Usually refers to \"plain\" and \"line\" versions but \"original\" can be accepted." ,
"description" : "DO NOT list aliases here! In this case use \"aliases\" property!" ,
"contains" : {
"$ref" : "#/definitions/IconVersions"
} ,
"minItems" : 1 ,
"uniqueItems" : true ,
"$ref" : "#/definitions/IconVersionsArray"
2022-12-10 07:58:13 -03:00
}
}
} ,
2024-01-18 17:44:21 +01:00
"color" : {
"title" : "The official/main hexadecimal color of the logo. [Case insensitive]" ,
"description" : "Pattern example: #FFFFFF" ,
"type" : "string" ,
"pattern" : "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$" ,
"format" : "color"
2022-12-10 07:58:13 -03:00
} ,
2024-01-18 17:44:21 +01:00
"aliases" : {
"title" : "Keeps track of the aliases for the font versions ONLY." ,
"description" : "Can be empty, or contain objects, each with an alias and a base version. More info here: https://github.com/devicons/devicon/wiki/Updating-%60devicon.json%60#aliases-and-aliasobj" ,
"type" : "array" ,
"items" : {
"title" : "AliasObj, an object containing an alias and a base version" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"base" : {
"title" : "The SVG file you are using as source for the alias." ,
"$ref" : "#/definitions/IconVersions"
} ,
"alias" : {
"title" : "The new name (alias) that you want to generate." ,
"$ref" : "#/definitions/IconVersions"
}
} ,
"required" : [
"base" ,
"alias"
] ,
"allOf" : [
{
"if" : {
"properties" : {
"base" : {
"const" : "original"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "original"
}
}
}
}
} ,
{
"if" : {
"properties" : {
"base" : {
"const" : "plain"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "plain"
}
}
}
}
} ,
{
"if" : {
"properties" : {
"base" : {
"const" : "line"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "line"
}
}
}
}
} ,
{
"if" : {
"properties" : {
"base" : {
"const" : "original-wordmark"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "original-wordmark"
}
}
}
}
} ,
{
"if" : {
"properties" : {
"base" : {
"const" : "plain-wordmark"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "plain-wordmark"
}
}
}
}
} ,
{
"if" : {
"properties" : {
"base" : {
"const" : "line-wordmark"
}
}
} ,
"then" : {
"not" : {
"properties" : {
"alias" : {
"const" : "line-wordmark"
}
}
}
}
}
]
2022-12-10 07:58:13 -03:00
}
}
2024-01-18 17:44:21 +01:00
} ,
"required" : [
"name" ,
"altnames" ,
"tags" ,
"versions" ,
"color" ,
"aliases"
]
}
2022-12-10 07:58:13 -03:00
}