patterns.schema.json 825 Bytes
Newer Older
Diegodlh's avatar
Diegodlh committed
1
2
3
4
5
6
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gitlab.wikimedia.org/diegodlh/w2c-core/-/blob/main/patterns.schema.json",
  "title": "Domain URL path patterns configuration for Web2Cit",
  "description": "A list of URL path patterns",
  "type": "array",
7
  "format": "tabs",
Diegodlh's avatar
Diegodlh committed
8
  "items": {
9
    "title": "Path pattern",
Diegodlh's avatar
Diegodlh committed
10
    "description": "A URL path pattern defines a translation subgroup within a domain",
Diegodlh's avatar
Diegodlh committed
11
12
13
    "type": "object",
    "properties": {
      "pattern": {
Diegodlh's avatar
Diegodlh committed
14
        "title": "Pattern",
Diegodlh's avatar
Diegodlh committed
15
16
17
18
        "description": "Glob path pattern defining a URL matching group",
        "type": "string"
      },
      "label": {
Diegodlh's avatar
Diegodlh committed
19
        "title": "Label",
Diegodlh's avatar
Diegodlh committed
20
21
22
23
        "description": "Fancy name for this URL path pattern",
        "type": "string"
      }
    },
Diegodlh's avatar
Diegodlh committed
24
25
26
    "required": [
      "pattern"
    ]
Diegodlh's avatar
Diegodlh committed
27
  }
Diegodlh's avatar
Diegodlh committed
28
}