{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://sonata-nfv.eu",
    "type": "object",
    "properties": {
        "descriptor_version": {
            "id": "http://sonata-nfv.eu/descriptor_version",
            "type": "string"
        },
        "$schema": {
            "id": "http://sonata-nfv.eu/$schema",
            "type": "string"
        },
        "group": {
            "id": "http://sonata-nfv.eu/group",
            "type": "string"
        },
        "name": {
            "id": "http://sonata-nfv.eu/name",
            "type": "string"
        },
        "version": {
            "id": "http://sonata-nfv.eu/version",
            "type": "string"
        },
        "package_maintainer": {
            "id": "http://sonata-nfv.eu/package_maintainer",
            "type": "string"
        },
        "package_description": {
            "id": "http://sonata-nfv.eu/package_description",
            "type": "string"
        },
        "package_md5": {
            "id": "http://sonata-nfv.eu/package_md5",
            "type": "string"
        },
        "ackage_signature": {
            "id": "http://sonata-nfv.eu/ackage_signature",
            "type": "string"
        },
        "entry_service_template": {
            "id": "http://sonata-nfv.eu/entry_service_template",
            "type": "string"
        },
        "sealed": {
            "id": "http://sonata-nfv.eu/sealed",
            "type": "boolean"
        },
        "package_content": {
            "id": "http://sonata-nfv.eu/package_content",
            "type": "array",
            "items": {
                "id": "http://sonata-nfv.eu/package_content/0",
                "type": "object",
                "properties": {
                    "name": {
                        "id": "http://sonata-nfv.eu/package_content/0/name",
                        "type": "string"
                    },
                    "content-type": {
                        "id": "http://sonata-nfv.eu/package_content/0/content-type",
                        "type": "string"
                    },
                    "md5": {
                        "id": "http://sonata-nfv.eu/package_content/0/md5",
                        "type": "string"
                    }
                }
            },
            "required": [
                "name",
                "content-type"
            ]
        },
        "artifact_dependencies": {
            "id": "http://sonata-nfv.eu/artifact_dependencies",
            "type": "array",
            "items": {
                "id": "http://sonata-nfv.eu/artifact_dependencies/0",
                "type": "object",
                "properties": {
                    "name": {
                        "id": "http://sonata-nfv.eu/artifact_dependencies/0/name",
                        "type": "string"
                    },
                    "url": {
                        "id": "http://sonata-nfv.eu/artifact_dependencies/0/url",
                        "type": "string"
                    },
                    "md5": {
                        "id": "http://sonata-nfv.eu/artifact_dependencies/0/md5",
                        "type": "string"
                    },
                    "credentials": {
                        "id": "http://sonata-nfv.eu/artifact_dependencies/0/credentials",
                        "type": "object",
                        "properties": {
                            "username": {
                                "id": "http://sonata-nfv.eu/artifact_dependencies/0/credentials/username",
                                "type": "string"
                            },
                            "password": {
                                "id": "http://sonata-nfv.eu/artifact_dependencies/0/credentials/password",
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    },
    "required": [
        "descriptor_version",
        "group",
        "name",
        "version"
    ]
}