summaryrefslogtreecommitdiffstatshomepage
path: root/core/assets/schemas/v1/icon_pack.schema.json
blob: 18e0a70bc620e882d2f4546ec76868949f388eb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
  "type": "object",
  "required": [
    "extractor",
    "template"
  ],
  "properties": {
    "label": {
      "title": "Label",
      "description": "Translatable label",
      "type": "string"
    },
    "description": {
      "title": "Description",
      "description": "Translatable description",
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "version": {
      "title": "Version",
      "type": "string"
    },
    "links": {
      "title": "External links",
      "description": "Both compact and full syntaxes are available",
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string",
            "format": "iri-reference"
          },
          {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "iri-reference"
              }
            }
          }
        ]
      }
    },
    "license": {
      "title": "License",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "iri-reference"
        },
        "gpl-compatible": {
          "type": "boolean"
        }
      }
    },
    "extractor": {
      "title": "Extractor ID",
      "description": "The plugin ID of the extractor",
      "type": "string",
      "pattern": "^[A-Za-z]+\\w*$"
    },
    "config": {
      "title": "Extractor configuration",
      "description": "The structure is specific to the extractor plugin",
      "type": "object"
    },
    "settings": {
      "title": "Settings",
      "description": "Used to build the settings form. Each setting is a JSON schema",
      "type": "object",
      "patternProperties": {
        "^\\w+$": {
          "$ref": "http://json-schema.org/draft-04/schema#"
        }
      },
      "additionalProperties": false
    },
    "template": {
      "title": "Twig template",
      "type": "string"
    },
    "library": {
      "title": "Asset library",
      "description": "The ID of an asset library",
      "type": "string",
      "pattern": "^\\w+/[A-Za-z]+\\w*$"
    }
  }
}