|
6 | 6 | "required": ["specVersion", "type", "metadata"],
|
7 | 7 | "if": {
|
8 | 8 | "properties": {
|
9 |
| - "specVersion": { "enum": ["3.0", "3.1"] } |
| 9 | + "specVersion": { "enum": ["3.1"] } |
10 | 10 | }
|
11 | 11 | },
|
12 | 12 | "then": {
|
13 | 13 | "additionalProperties": false,
|
14 | 14 | "properties": {
|
15 |
| - "specVersion": { "enum": ["3.0", "3.1"] }, |
| 15 | + "specVersion": { "enum": ["3.1"] }, |
16 | 16 | "kind": {
|
17 | 17 | "enum": ["project", null]
|
18 | 18 | },
|
|
26 | 26 | "$ref": "#/definitions/resources"
|
27 | 27 | },
|
28 | 28 | "builder": {
|
29 |
| - "$ref": "#/definitions/builder-specVersion-2.5" |
| 29 | + "$ref": "#/definitions/builder-specVersion-3.1" |
30 | 30 | },
|
31 | 31 | "server": {
|
32 | 32 | "$ref": "../project.json#/definitions/server"
|
|
40 | 40 | "else": {
|
41 | 41 | "if": {
|
42 | 42 | "properties": {
|
43 |
| - "specVersion": { "enum": ["2.5", "2.6"] } |
| 43 | + "specVersion": { "enum": ["3.0"] } |
44 | 44 | }
|
45 | 45 | },
|
46 | 46 | "then": {
|
47 | 47 | "additionalProperties": false,
|
48 | 48 | "properties": {
|
49 |
| - "specVersion": { "enum": ["2.5", "2.6"] }, |
| 49 | + "specVersion": { "enum": ["3.0"] }, |
50 | 50 | "kind": {
|
51 | 51 | "enum": ["project", null]
|
52 | 52 | },
|
53 | 53 | "type": {
|
54 | 54 | "enum": ["module"]
|
55 | 55 | },
|
56 | 56 | "metadata": {
|
57 |
| - "$ref": "../project.json#/definitions/metadata" |
| 57 | + "$ref": "../project.json#/definitions/metadata-3.0" |
58 | 58 | },
|
59 | 59 | "resources": {
|
60 | 60 | "$ref": "#/definitions/resources"
|
|
74 | 74 | "else": {
|
75 | 75 | "if": {
|
76 | 76 | "properties": {
|
77 |
| - "specVersion": { "enum": ["2.1", "2.2", "2.3", "2.4"] } |
| 77 | + "specVersion": { "enum": ["2.5", "2.6"] } |
78 | 78 | }
|
79 | 79 | },
|
80 | 80 | "then": {
|
81 | 81 | "additionalProperties": false,
|
82 | 82 | "properties": {
|
83 |
| - "specVersion": { "enum": ["2.1", "2.2", "2.3", "2.4"] }, |
| 83 | + "specVersion": { "enum": ["2.5", "2.6"] }, |
84 | 84 | "kind": {
|
85 | 85 | "enum": ["project", null]
|
86 | 86 | },
|
|
93 | 93 | "resources": {
|
94 | 94 | "$ref": "#/definitions/resources"
|
95 | 95 | },
|
| 96 | + "builder": { |
| 97 | + "$ref": "#/definitions/builder-specVersion-2.5" |
| 98 | + }, |
| 99 | + "server": { |
| 100 | + "$ref": "../project.json#/definitions/server" |
| 101 | + }, |
96 | 102 | "customConfiguration": {
|
97 | 103 | "type": "object",
|
98 | 104 | "additionalProperties": true
|
99 | 105 | }
|
100 | 106 | }
|
101 | 107 | },
|
102 | 108 | "else": {
|
103 |
| - "additionalProperties": false, |
104 |
| - "properties": { |
105 |
| - "specVersion": { "enum": ["2.0"] }, |
106 |
| - "kind": { |
107 |
| - "enum": ["project", null] |
108 |
| - }, |
109 |
| - "type": { |
110 |
| - "enum": ["module"] |
111 |
| - }, |
112 |
| - "metadata": { |
113 |
| - "$ref": "../project.json#/definitions/metadata" |
114 |
| - }, |
115 |
| - "resources": { |
116 |
| - "$ref": "#/definitions/resources" |
| 109 | + "if": { |
| 110 | + "properties": { |
| 111 | + "specVersion": { "enum": ["2.1", "2.2", "2.3", "2.4"] } |
| 112 | + } |
| 113 | + }, |
| 114 | + "then": { |
| 115 | + "additionalProperties": false, |
| 116 | + "properties": { |
| 117 | + "specVersion": { "enum": ["2.1", "2.2", "2.3", "2.4"] }, |
| 118 | + "kind": { |
| 119 | + "enum": ["project", null] |
| 120 | + }, |
| 121 | + "type": { |
| 122 | + "enum": ["module"] |
| 123 | + }, |
| 124 | + "metadata": { |
| 125 | + "$ref": "../project.json#/definitions/metadata" |
| 126 | + }, |
| 127 | + "resources": { |
| 128 | + "$ref": "#/definitions/resources" |
| 129 | + }, |
| 130 | + "customConfiguration": { |
| 131 | + "type": "object", |
| 132 | + "additionalProperties": true |
| 133 | + } |
| 134 | + } |
| 135 | + }, |
| 136 | + "else": { |
| 137 | + "additionalProperties": false, |
| 138 | + "properties": { |
| 139 | + "specVersion": { "enum": ["2.0"] }, |
| 140 | + "kind": { |
| 141 | + "enum": ["project", null] |
| 142 | + }, |
| 143 | + "type": { |
| 144 | + "enum": ["module"] |
| 145 | + }, |
| 146 | + "metadata": { |
| 147 | + "$ref": "../project.json#/definitions/metadata" |
| 148 | + }, |
| 149 | + "resources": { |
| 150 | + "$ref": "#/definitions/resources" |
| 151 | + } |
117 | 152 | }
|
118 | 153 | }
|
119 | 154 | }
|
|
149 | 184 | "$ref": "../project.json#/definitions/builder-settings"
|
150 | 185 | }
|
151 | 186 | }
|
| 187 | + }, |
| 188 | + "builder-specVersion-3.1": { |
| 189 | + "type": "object", |
| 190 | + "additionalProperties": false, |
| 191 | + "properties": { |
| 192 | + "resources": { |
| 193 | + "$ref": "../project.json#/definitions/builder-resources" |
| 194 | + }, |
| 195 | + "settings": { |
| 196 | + "$ref": "../project.json#/definitions/builder-settings" |
| 197 | + } |
| 198 | + } |
152 | 199 | }
|
153 | 200 | }
|
154 | 201 | }
|
0 commit comments