@ui5/project
Version:
UI5 Tooling - Project
138 lines (136 loc) • 2.69 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://ui5.sap/schema/specVersion/kind/extension/project-shim.json",
"type": "object",
"required": ["specVersion", "kind", "type", "metadata", "shims"],
"if": {
"properties": {
"specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": {
"enum": ["3.0", "3.1", "3.2", "4.0"]
},
"kind": {
"enum": ["extension"]
},
"type": {
"enum": ["project-shim"]
},
"metadata": {
"$ref": "../extension.json#/definitions/metadata-3.0"
},
"shims": {
"$ref": "#/definitions/shims"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"if": {
"properties": {
"specVersion": { "enum": ["2.1", "2.2", "2.3", "2.4", "2.5", "2.6"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": {
"enum": ["2.1", "2.2", "2.3", "2.4", "2.5", "2.6"]
},
"kind": {
"enum": ["extension"]
},
"type": {
"enum": ["project-shim"]
},
"metadata": {
"$ref": "../extension.json#/definitions/metadata"
},
"shims": {
"$ref": "#/definitions/shims"
},
"customConfiguration": {
"type": "object",
"additionalProperties": true
}
}
},
"else": {
"additionalProperties": false,
"properties": {
"specVersion": {
"enum": ["2.0"]
},
"kind": {
"enum": ["extension"]
},
"type": {
"enum": ["project-shim"]
},
"metadata": {
"$ref": "../extension.json#/definitions/metadata"
},
"shims": {
"$ref": "#/definitions/shims"
}
}
}
},
"definitions": {
"shims": {
"type": "object",
"additionalProperties": false,
"properties": {
"configurations": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
".+": {
"type": "object"
}
}
},
"dependencies": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
".+": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"collections": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
".+": {
"type": "object",
"additionalProperties": false,
"properties": {
"modules": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
".+": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}