{
    "$id": "https://dspk.diffscope.org/schema/1.0/package-desc.schema.json",
    "$schema": "http://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
        "contributes": {
            "additionalProperties": false,
            "properties": {
                "inferences": {
                    "items": {
                        "description": "Path to the inference description file",
                        "type": "string"
                    },
                    "type": "array"
                },
                "singers": {
                    "items": {
                        "description": "Path to the singer description file",
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "required": [
                "inferences",
                "singers"
            ],
            "type": "object"
        },
        "dependencies": {
            "items": {
                "additionalProperties": false,
                "description": "A dependency on another package",
                "properties": {
                    "id": {
                        "$ref": "core.schema.json#/$defs/packageIdentifier"
                    },
                    "version": {
                        "$ref": "core.schema.json#/$defs/version"
                    }
                },
                "required": [
                    "id",
                    "version"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "description": {
            "$ref": "core.schema.json#/$defs/multilingualText",
            "description": "Description of the package"
        },
        "id": {
            "$ref": "core.schema.json#/$defs/packageIdentifier"
        },
        "license": {
            "$ref": "core.schema.json#/$defs/multilingualText",
            "description": "Path to the license file."
        },
        "name": {
            "$ref": "core.schema.json#/$defs/multilingualText",
            "description": "Package name"
        },
        "readme": {
            "$ref": "core.schema.json#/$defs/multilingualText",
            "description": "Path to the README file."
        },
        "url": {
            "description": "URL to the package homepage",
            "type": "string"
        },
        "vendor": {
            "$ref": "core.schema.json#/$defs/multilingualText",
            "description": "Vendor name"
        },
        "version": {
            "$ref": "core.schema.json#/$defs/version"
        }
    },
    "required": [
        "contributes",
        "dependencies",
        "id",
        "version"
    ],
    "title": "Package Description Schema",
    "type": "object"
}