| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- {
- "description": "Schema file for uFBT-FirmwareManager firmwares.json file",
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "type": "object",
- "properties": {
- "firmwares": {
- "description": "Available firmwares",
- "type": "array",
- "items": {
- "type": "object",
- "allOf": [
- {
- "properties": {
- "alias": {
- "description": "Firmware alias(-es)",
- "type": "array",
- "items": {
- "type": "string"
- },
- "minItems": 1,
- "uniqueItems": true
- },
- "description": {
- "description": "User-friendly description explaining firmware details",
- "type": "string"
- },
- "type": {
- "description": "Type of firmware reference. `index` - firmware from index; `git-release` - firmware from gir releases",
- "enum": [
- "index",
- "git-release"
- ]
- }
- },
- "required": [
- "alias",
- "description"
- ],
- "unevaluatedProperties ": false
- },
- {
- "oneOf": [
- {
- "if": {
- "properties": {
- "type": {
- "const": "index"
- }
- },
- "required": [
- "type"
- ]
- },
- "then": {
- "properties": {
- "index_url": {
- "description": "Index URL to look for firmware",
- "type": "string"
- },
- "channel": {
- "description": "Index channel to pull firmware from",
- "type": "string"
- }
- },
- "required": [
- "index_url",
- "channel"
- ],
- "unevaluatedProperties ": false
- },
- "else": false
- },
- {
- "if": {
- "properties": {
- "type": {
- "const": "git-release"
- }
- },
- "required": [
- "type"
- ]
- },
- "then": {
- "properties": {
- "git_repo": {
- "description": "Firmware Github repo in format `author/repo_name`",
- "type": "string"
- },
- "git_release": {
- "description": "Github release name to pull firmware from",
- "type": "string"
- }
- },
- "required": [
- "git_repo",
- "git_release"
- ],
- "unevaluatedProperties ": false
- },
- "else": false
- }
- ]
- }
- ]
- }
- }
- },
- "required": [
- "firmwares"
- ],
- "unevaluatedProperties ": false
- }
|