UNPKG

@ui5/project

Version:
594 lines (592 loc) 14.6 kB
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "http://ui5.sap/schema/specVersion/kind/project/library.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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": ["library"] }, "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": { "src": { "type": "string" }, "test": { "type": "string" } } } } } } }, "builder-jsdoc": { "type": "object", "additionalProperties": false, "properties": { "excludes": { "type": "array", "items": { "type": "string" } } } }, "builder": { "type": "object", "additionalProperties": false, "properties": { "resources": { "$ref": "../project.json#/definitions/builder-resources" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "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" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "customTasks": { "$ref": "../project.json#/definitions/customTasks" } } }, "builder-specVersion-2.4": { "type": "object", "additionalProperties": false, "properties": { "resources": { "$ref": "../project.json#/definitions/builder-resources" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-2.4" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "customTasks": { "$ref": "../project.json#/definitions/customTasks" } } }, "builder-specVersion-2.5": { "type": "object", "additionalProperties": false, "properties": { "resources": { "$ref": "../project.json#/definitions/builder-resources" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-2.4" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "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" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-2.4" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "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" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-3.0" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "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" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-3.2" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "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" }, "jsdoc": { "$ref": "#/definitions/builder-jsdoc" }, "bundles": { "$ref": "../project.json#/definitions/builder-bundles-4.0" }, "componentPreload": { "$ref": "../project.json#/definitions/builder-componentPreload-specVersion-2.3" }, "libraryPreload": { "$ref": "../project.json#/definitions/builder-libraryPreload" }, "customTasks": { "$ref": "../project.json#/definitions/customTasks" }, "minification": { "$ref": "../project.json#/definitions/builder-minification" }, "settings": { "$ref": "../project.json#/definitions/builder-settings" } } } } }