@ui5/project
Version:
UI5 Tooling - Project
609 lines (604 loc) • 14.6 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://ui5.sap/schema/specVersion/kind/project/application.json",
"type": "object",
"required": ["specVersion", "type", "metadata"],
"if": {
"properties": {
"specVersion": { "enum": ["4.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["4.0"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata-3.0"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-4.0"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["3.2"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["3.2"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata-3.0"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-3.2"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["3.0", "3.1"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["3.0", "3.1"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata-3.0"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-3.0"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.6"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.6"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-2.6"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.5"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.5"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-2.5"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.4"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.4"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-2.4"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.3"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.3"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder-specVersion-2.3"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.1", "2.2"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.1", "2.2"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder"
},
"server": {
"$ref": "../project.json#/definitions/server"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"additionalProperties": false,
"properties": {
"specVersion": { "enum": ["2.0"] },
"kind": {
"enum": ["project", null]
},
"type": {
"enum": ["application"]
},
"metadata": {
"$ref": "../project.json#/definitions/metadata"
},
"framework": {
"$ref": "../project.json#/definitions/framework"
},
"resources": {
"$ref": "#/definitions/resources"
},
"builder": {
"$ref": "#/definitions/builder"
},
"server": {
"$ref": "../project.json#/definitions/server"
}
}
}
}
}
}
}
}
}
},
"definitions": {
"resources": {
"type": "object",
"additionalProperties": false,
"properties": {
"configuration": {
"type": "object",
"additionalProperties": false,
"properties": {
"propertiesFileSourceEncoding": {
"$ref": "../project.json#/definitions/resources-configuration-propertiesFileSourceEncoding"
},
"paths": {
"type": "object",
"additionalProperties": false,
"properties": {
"webapp": {
"type": "string"
}
}
}
}
}
}
},
"builder": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
}
}
},
"builder-specVersion-2.3": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
}
}
},
"builder-specVersion-2.4": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-2.4"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
}
}
},
"builder-specVersion-2.5": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-2.4"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
},
"settings": {
"$ref": "../project.json#/definitions/builder-settings"
}
}
},
"builder-specVersion-2.6": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-2.4"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
},
"minification": {
"$ref": "../project.json#/definitions/builder-minification"
},
"settings": {
"$ref": "../project.json#/definitions/builder-settings"
}
}
},
"builder-specVersion-3.0": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-3.0"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
},
"minification": {
"$ref": "../project.json#/definitions/builder-minification"
},
"settings": {
"$ref": "../project.json#/definitions/builder-settings"
}
}
},
"builder-specVersion-3.2": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-3.2"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
},
"minification": {
"$ref": "../project.json#/definitions/builder-minification"
},
"settings": {
"$ref": "../project.json#/definitions/builder-settings"
}
}
},
"builder-specVersion-4.0": {
"type": "object",
"additionalProperties": false,
"properties": {
"resources": {
"$ref": "../project.json#/definitions/builder-resources"
},
"cachebuster": {
"type": "object",
"additionalProperties": false,
"properties": {
"signatureType": {
"enum": ["time", "hash"]
}
}
},
"bundles": {
"$ref": "../project.json#/definitions/builder-bundles-4.0"
},
"componentPreload": {
"$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3"
},
"customTasks": {
"$ref": "../project.json#/definitions/customTasks"
},
"minification": {
"$ref": "../project.json#/definitions/builder-minification"
},
"settings": {
"$ref": "../project.json#/definitions/builder-settings"
}
}
}
}
}