diff --git a/src/schemas/json/xs-app.json b/src/schemas/json/xs-app.json index f774aa3cf61..0d7a8dfe782 100644 --- a/src/schemas/json/xs-app.json +++ b/src/schemas/json/xs-app.json @@ -71,6 +71,63 @@ "type": "string", "minLength": 1 } + }, + "corsSchema": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "uriPattern": { + "$ref": "#/definitions/sourceSchema" + }, + "allowedOrigin": { + "format": "validateWhitelist" + }, + "allowedMethods": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "enum": [ + "DELETE", + "GET", + "HEAD", + "OPTIONS", + "POST", + "PUT", + "TRACE", + "PATCH" + ] + } + }, + "allowedHeaders": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + } + }, + "allowedCredentials": { + "type": "boolean" + }, + "exposeHeaders": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + } + }, + "maxAge": { + "type": "integer", + "minimum": 1 + } + }, + "required": ["allowedOrigin", "uriPattern"] + } } }, "description": "Application Router Configuration Schema", @@ -135,6 +192,9 @@ "csrfProtection": { "type": "boolean" }, + "preferLocal": { + "type": "boolean" + }, "service": { "type": "string" }, @@ -143,12 +203,15 @@ }, "authenticationType": { "type": "string", - "enum": ["xsuaa", "basic", "ias", "none"] + "enum": ["xsuaa", "ias", "basic", "none"] }, "identityProvider": { "type": "string", "minLength": 1 }, + "dynamicIdentityProvider": { + "type": "boolean" + }, "scope": { "$ref": "#/definitions/scopesSchema" }, @@ -186,6 +249,26 @@ "required": ["source"] } }, + "responseHeaders": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "minLength": 1, + "format": "headers-rules" + }, + "value": { + "type": "string", + "minLength": 1, + "format": "valid-header-value" + } + }, + "required": ["name", "value"] + } + }, "destinations": { "type": "object", "format": "destinations-rules", @@ -242,6 +325,13 @@ "type": "string", "minLength": 1, "format": "uri" + }, + "logoutMethod": { + "type": "string", + "enum": ["POST", "GET"] + }, + "csrfProtection": { + "type": "boolean" } } }, @@ -279,6 +369,9 @@ "minSize": { "type": "integer", "minimum": 1 + }, + "compressResponseMixedTypeContent": { + "type": "boolean" } } }, @@ -316,6 +409,9 @@ } } } + }, + "cors": { + "$ref": "#/definitions/corsSchema" } }, "title": "com.sap.xsapp.schema_8.2",