patterns.schema.json 664 Bytes
Newer Older
Diegodlh's avatar
Diegodlh committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "$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",
  "items": {
    "description": "A URL path pattern",
    "type": "object",
    "properties": {
      "pattern": {
        "description": "Glob path pattern defining a URL matching group",
        "type": "string"
      },
      "label": {
        "description": "Fancy name for this URL path pattern",
        "type": "string"
      }
    },
    "required": ["pattern"]
  }
}