|
3 | 3 | "title": "AddonCatalog",
|
4 | 4 | "description": "A catalog of addons indexed by addon ID. Each ID maps to a list of AddonCatalogEntry objects.",
|
5 | 5 | "type": "object",
|
| 6 | + "properties": { |
| 7 | + "$schema": { |
| 8 | + "type": "string", |
| 9 | + "format": "uri", |
| 10 | + "description": "A link to the JSON Schema describing the structure of this file." |
| 11 | + }, |
| 12 | + "_meta": { |
| 13 | + "type": "object", |
| 14 | + "description": "Metadata describing the catalog file itself.", |
| 15 | + "properties": { |
| 16 | + "description": { |
| 17 | + "type": "string" |
| 18 | + }, |
| 19 | + "schema_version": { |
| 20 | + "type": "string" |
| 21 | + } |
| 22 | + }, |
| 23 | + "additionalProperties": true |
| 24 | + } |
| 25 | + }, |
6 | 26 | "patternProperties": {
|
7 | 27 | "^.+$": {
|
8 | 28 | "type": "array",
|
|
11 | 31 | "properties": {
|
12 | 32 | "freecad_min": {
|
13 | 33 | "type": "string",
|
14 |
| - "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$", |
15 |
| - "description": "Minimum compatible FreeCAD version (inclusive, Semantic Versioning)" |
| 34 | + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$" |
16 | 35 | },
|
17 | 36 | "freecad_max": {
|
18 | 37 | "type": "string",
|
19 |
| - "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$", |
20 |
| - "description": "Maximum compatible FreeCAD version (inclusive, Semantic Versioning)" |
| 38 | + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$" |
21 | 39 | },
|
22 | 40 | "repository": {
|
23 | 41 | "type": "string",
|
24 |
| - "format": "uri", |
25 |
| - "description": "Git repository URL" |
| 42 | + "format": "uri" |
26 | 43 | },
|
27 | 44 | "git_ref": {
|
28 |
| - "type": "string", |
29 |
| - "description": "Git reference (e.g. SHA, branch, or tag)" |
| 45 | + "type": "string" |
30 | 46 | },
|
31 | 47 | "zip_url": {
|
32 | 48 | "type": "string",
|
33 |
| - "format": "uri", |
34 |
| - "description": "Direct download link for a .zip file. If git information is also present, this should correspond to a ZIP download link that will result in the same code as a checkout of the given git repo and ref." |
| 49 | + "format": "uri" |
35 | 50 | },
|
36 | 51 | "note": {
|
37 |
| - "type": "string", |
38 |
| - "description": "Notes about this addon version. Not displayed, only for reference in the JSON catalog file." |
| 52 | + "type": "string" |
39 | 53 | },
|
40 | 54 | "branch_display_name": {
|
41 |
| - "type": "string", |
42 |
| - "description": "Display name for the addon version branch. If omitted, the git ref is used." |
| 55 | + "type": "string" |
43 | 56 | }
|
44 | 57 | },
|
45 | 58 | "anyOf": [
|
46 | 59 | {
|
47 |
| - "required": ["repository", "git_ref"] |
| 60 | + "required": [ |
| 61 | + "repository", |
| 62 | + "git_ref" |
| 63 | + ] |
48 | 64 | },
|
49 | 65 | {
|
50 |
| - "required": ["zip_url"] |
| 66 | + "required": [ |
| 67 | + "zip_url" |
| 68 | + ] |
51 | 69 | }
|
52 | 70 | ],
|
53 | 71 | "if": {
|
54 | 72 | "not": {
|
55 |
| - "required": ["git_ref"] |
| 73 | + "required": [ |
| 74 | + "git_ref" |
| 75 | + ] |
56 | 76 | }
|
57 | 77 | },
|
58 | 78 | "then": {
|
59 |
| - "required": ["branch_display_name"] |
| 79 | + "required": [ |
| 80 | + "branch_display_name" |
| 81 | + ] |
60 | 82 | },
|
61 | 83 | "additionalProperties": false
|
62 | 84 | }
|
|
0 commit comments