Files
lnreader-plugins/sourcesSchema.json
T
Marcin Majewski d7a76063bf Filters Redesign (#658)
* Add XCheckboxFilter

* Fix madara typo

* Change the branch name in config

* Add typing for madara popoularnovels filters

* Add preview and refactor PluginWrapper

* Add preview HTML sanitize and other improv.

* Web improvements + sanitizeHTML

* Add dark mode

* Add git run less to compile less

* Add less.js to remove the need for compiling less
2023-12-27 20:19:46 +05:30

88 lines
3.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"additionalProperties": { "type": "string" },
"id": {
"type": "string"
},
"sourceSite": {
"type": "string"
},
"sourceName": {
"type": "string"
},
"filters": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["label", "value"]
}
},
"value": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": ["label", "options", "type", "value"]
}
}
},
"options": {
"type": "object",
"properties": {
"path": {
"type": "object",
"properties": {
"genres": {
"type": "string"
},
"novels": {
"type": "string"
},
"novel": {
"type": "string"
},
"chapter": {
"type": "string"
}
},
"additionalProperties": false
},
"useNewChapterEndpoint": {
"type": "boolean"
},
"lang": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["lang"]
}
},
"required": ["id", "sourceSite", "sourceName"]
}
}