Skip to content

Commit e3bb383

Browse files
committed
Rename spec version 1.1a to 2.2a
1 parent d3ccd1a commit e3bb383

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/projectPreprocessor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class ProjectPreprocessor {
277277
}
278278

279279
if (project.specVersion !== "0.1" && project.specVersion !== "1.0" &&
280-
project.specVersion !== "1.1" && project.specVersion !== "2.0" && project.specVersion !== "1.1a") {
280+
project.specVersion !== "1.1" && project.specVersion !== "2.0" && project.specVersion !== "2.2a") {
281281
throw new Error(
282282
`Unsupported specification version ${project.specVersion} defined for project ` +
283283
`${project.id}. Your UI5 CLI installation might be outdated. ` +
@@ -353,7 +353,7 @@ class ProjectPreprocessor {
353353
extension.specVersion !== "1.0" &&
354354
extension.specVersion !== "1.1" &&
355355
extension.specVersion !== "2.0" &&
356-
extension.specVersion !== "1.1a") {
356+
extension.specVersion !== "2.2a") {
357357
throw new Error(
358358
`Unsupported specification version ${extension.specVersion} defined for extension ` +
359359
`${extension.metadata.name}. Your UI5 CLI installation might be outdated. ` +
@@ -378,9 +378,9 @@ class ProjectPreprocessor {
378378
this.handleServerMiddleware(extension);
379379
break;
380380
case "proxy-configuration":
381-
if (extension.specVersion !== "1.1a") {
381+
if (extension.specVersion !== "2.2a") {
382382
throw new Error(`Extensions of type "proxy-configuration"
383-
must use specification version "1.1a"`);
383+
must use specification version "2.2a"`);
384384
}
385385
this.handleProxyConfiguration(extension);
386386
break;

lib/validation/schema/ui5.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"specVersion": {
1212
"enum": [
1313
"2.0",
14-
"1.1", "1.0", "0.1"
14+
"2.2a", "1.1", "1.0", "0.1"
1515
],
1616
"errorMessage": "Unsupported \"specVersion\"\nYour UI5 CLI installation might be outdated.\nSupported specification versions: \"2.0\", \"1.1\", \"1.0\", \"0.1\"\nFor details see: https://sap.github.io/ui5-tooling/pages/Configuration/#specification-versions"
1717
}
@@ -28,7 +28,7 @@
2828
"else": {
2929
"if": {
3030
"properties": {
31-
"specVersion": { "enum": ["1.1", "1.0", "0.1"] }
31+
"specVersion": { "enum": ["2.2a", "1.1", "1.0", "0.1"] }
3232
}
3333
},
3434
"then": {

0 commit comments

Comments
 (0)