mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-05-18 03:39:10 +00:00
schema: add localized anti-features
This commit is contained in:
parent
acd6498209
commit
2c11cc15d1
1 changed files with 41 additions and 19 deletions
|
|
@ -736,25 +736,38 @@
|
|||
"definitions": {
|
||||
"anti_features": {
|
||||
"$id": "#antifeatures",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Ads",
|
||||
"Tracking",
|
||||
"NonFreeNet",
|
||||
"NonFreeAdd",
|
||||
"NonFreeDep",
|
||||
"UpstreamNonFree",
|
||||
"NonFreeAssets",
|
||||
"NSFW",
|
||||
"KnownVuln",
|
||||
"ApplicationDebuggable",
|
||||
"NoSourceSince"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Ads",
|
||||
"ApplicationDebuggable",
|
||||
"KnownVuln",
|
||||
"NonFreeAdd",
|
||||
"NonFreeAssets",
|
||||
"NonFreeDep",
|
||||
"NonFreeNet",
|
||||
"NoSourceSince",
|
||||
"NSFW",
|
||||
"UpstreamNonFree",
|
||||
"Tracking"
|
||||
]
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"minItems": 1
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^(Ads|Tracking|ApplicationDebuggable|KnownVuln|NonFreeAdd|NonFreeAssets|NonFreeDep|NonFreeNet|NoSourceSince|NSFW|UpstreamNonFree|Tracking)$": {
|
||||
"$ref": "#/definitions/localized_string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_list": {
|
||||
"anyOf": [
|
||||
|
|
@ -769,6 +782,15 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"localized_string": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[a-z]{2,3}(-([A-Z][a-zA-Z]+|\\d+|[a-z]+))*$": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"pattern": "^https?://.*$"
|
||||
|
|
|
|||
Loading…
Reference in a new issue