Skip to content

Commit 51fa411

Browse files
authored
Add skip-deploy and app-features parameters in mta schemas (SchemaStore#4902)
1 parent 14ba85b commit 51fa411

File tree

3 files changed

+78
-3
lines changed

3 files changed

+78
-3
lines changed

src/schemas/json/mta.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,33 @@
3131
"parameters": {
3232
"type": "object"
3333
},
34+
"module-parameters": {
35+
"type": "object",
36+
"properties": {
37+
"app-features": {
38+
"$ref": "#/definitions/module-parameters-app-features",
39+
"description": "A set of features that can be enabled for the application module (This is not applicable for module type com.sap.application.content). The features are not mandatory and can be used to enable additional functionality for the application."
40+
},
41+
"skip-deploy": {
42+
"description": "Skip the deployment of the application.",
43+
"type": "boolean"
44+
}
45+
},
46+
"additionalProperties": true
47+
},
48+
"module-parameters-app-features": {
49+
"type": "object",
50+
"properties": {
51+
"ssh": {
52+
"description": "Enable SSH access to the application.",
53+
"type": "boolean"
54+
},
55+
"file-based-vcap-services": {
56+
"description": "Enable file-based VCAP service bindings for the app.",
57+
"type": "boolean"
58+
}
59+
}
60+
},
3461
"parameters-metadata": {
3562
"type": "object",
3663
"properties": {
@@ -224,7 +251,7 @@
224251
"description": "Additional information about the module's properties."
225252
},
226253
"parameters": {
227-
"$ref": "#/definitions/parameters",
254+
"$ref": "#/definitions/module-parameters",
228255
"description": "Configuration parameters that are used when deploying the module to the target runtime environment."
229256
},
230257
"parameters-metadata": {

src/schemas/json/mtad.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
"module-parameters": {
4242
"type": "object",
4343
"properties": {
44+
"app-features": {
45+
"$ref": "#/definitions/module-parameters-app-features",
46+
"description": "A set of features that can be enabled for the application module (This is not applicable for module type com.sap.application.content). The features are not mandatory and can be used to enable additional functionality for the application."
47+
},
4448
"app-name": {
4549
"description": "The name of the application in the Cloud Foundry environment to be deployed for this module, based on the module name.",
4650
"type": "string"
@@ -185,6 +189,10 @@
185189
"description": "The name of the user required for authentication by the XS controller at the service broker when performing service-related requests. The parameter is mandatory if create-service-broker: true.",
186190
"type": "string"
187191
},
192+
"skip-deploy": {
193+
"description": "Skip the deployment of the application.",
194+
"type": "boolean"
195+
},
188196
"stack": {
189197
"description": "Use this parameter to define which prebuilt root file system (rootfs) you want to use.",
190198
"type": "string"
@@ -215,6 +223,19 @@
215223
}
216224
}
217225
},
226+
"module-parameters-app-features": {
227+
"type": "object",
228+
"properties": {
229+
"ssh": {
230+
"description": "Enable SSH access to the application.",
231+
"type": "boolean"
232+
},
233+
"file-based-vcap-services": {
234+
"description": "Enable file-based VCAP service bindings for the app.",
235+
"type": "boolean"
236+
}
237+
}
238+
},
218239
"module-parameters-buildpacks": {
219240
"type": "array",
220241
"items": {

src/schemas/json/mtaext.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"$id": "https://json.schemastore.org/mtaext.json",
44
"definitions": {
5+
"module-parameters": {
6+
"type": "object",
7+
"properties": {
8+
"app-features": {
9+
"$ref": "#/definitions/module-parameters-app-features",
10+
"description": "A set of features that can be enabled for the application module (This is not applicable for module type com.sap.application.content). The features are not mandatory and can be used to enable additional functionality for the application."
11+
},
12+
"skip-deploy": {
13+
"description": "Skip the deployment of the application.",
14+
"type": "boolean"
15+
}
16+
},
17+
"additionalProperties": true
18+
},
19+
"module-parameters-app-features": {
20+
"type": "object",
21+
"properties": {
22+
"ssh": {
23+
"description": "Enable SSH access to the application.",
24+
"type": "boolean"
25+
},
26+
"file-based-vcap-services": {
27+
"description": "Enable file-based VCAP service bindings for the app.",
28+
"type": "boolean"
29+
}
30+
}
31+
},
532
"hooks": {
633
"type": "array",
734
"items": {
@@ -91,8 +118,8 @@
91118
"type": "object"
92119
},
93120
"parameters": {
94-
"description": "Configuration parameters that are used when deploying the module to the target runtime environment.",
95-
"type": "object"
121+
"$ref": "#/definitions/module-parameters",
122+
"description": "Configuration parameters that are used when deploying the module to the target runtime environment."
96123
},
97124
"hooks": {
98125
"$ref": "#/definitions/hooks",

0 commit comments

Comments
 (0)