{
    "definitions": {},
    "items": {
        "_$id": "phovea_product/items",
        "properties": {
            "additional": {
                "_$id": "phovea_product/items/properties/additional",
                "description": "additional repositories that should be included in the build",
                "items": {
                    "_$id": "phovea_product/items/properties/additional/items",
                    "properties": {
                        "branch": {
                            "_$id": "phovea_product/items/properties/additional/items/properties/branch",
                            "default": "master",
                            "examples": [
                                "master",
                                "v1.2.3",
                                "dc7486a472a987a2f6a38cd18b9b069487f1a4c8",
                                "develop"
                            ],
                            "title": "the branch, tag, or sha1 commit to use",
                            "type": "string"
                        },
                        "name": {
                            "_$id": "phovea_product/items/properties/additional/items/properties/name",
                            "default": "",
                            "examples": [
                                "phovea_core"
                            ],
                            "title": "name of the repo",
                            "type": "string"
                        },
                        "repo": {
                            "_$id": "phovea_product/items/properties/additional/items/properties/repo",
                            "default": "",
                            "description": "either a full git url or in the form <GithubAccount>/<repo>",
                            "examples": [
                                "Caleydo/ordino"
                            ],
                            "title": "repository to use",
                            "type": "string"
                        },
                        "symlink": {
                            "_$id": "phovea_product/items/properties/symlink",
                            "default": "",
                            "description": "Note symbolic links will be created to ensure the proper structure",
                            "examples": [
                                "../myclone"
                            ],
                            "title": "location relative to the product directory which contains the clone repository",
                            "type": "string"
                        }
                    },
                    "required": [
                        "nane",
                        "repo"
                    ],
                    "type": "object"
                },
                "type": "array"
            },
            "branch": {
                "_$id": "phovea_product/items/properties/branch",
                "default": "master",
                "examples": [
                    "master",
                    "v1.2.3",
                    "dc7486a472a987a2f6a38cd18b9b069487f1a4c8",
                    "develop"
                ],
                "title": "the branch, tag, or sha1 commit to use",
                "type": "string"
            },
            "data": {
                "_$id": "phovea_product/items/properties/data",
                "description": "a list of data files that should be included in /phovea/_data of the server build",
                "items": {
                    "_$id": "phovea_product/items/properties/data/items",
                    "properties": {
                        "name": {
                            "_$id": "phovea_product/items/properties/data/items/properties/name",
                            "default": "derived from url or repo",
                            "title": "name to store the file as",
                            "type": "string"
                        },
                        "repo": {
                            "_$id": "phovea_product/items/properties/data/items/properties/repo",
                            "default": "",
                            "description": "either a full git url or in the form <GithubAccount>/<repo>",
                            "examples": [
                                "Caleydo/ordino"
                            ],
                            "title": "repository to clone that contains a data directory, the /data directory is cloned to /phovea/_data/<reponame>",
                            "type": "string"
                        },
                        "url": {
                            "_$id": "phovea_product/items/properties/data/items/properties/url",
                            "default": "",
                            "description": "if the file doesn't start with http... it is assumed that the file is relative to https://s3.eu-central-1.amazonaws.com/phovea-data-packages/",
                            "examples": [
                                "test.h5",
                                "https://test.com/test.txt"
                            ],
                            "title": "url to a file to download",
                            "type": "string"
                        }
                    },
                    "type": "object"
                },
                "type": "array"
            },
            "label": {
                "_$id": "phovea_product/items/properties/label",
                "default": "=name",
                "examples": [
                    "ordino",
                    "server"
                ],
                "title": "product label and docker image label",
                "type": "string"
            },
            "name": {
                "_$id": "phovea_product/items/properties/name",
                "default": "guesses from the repository",
                "examples": [
                    "ordino",
                    "server"
                ],
                "title": "name of the repo",
                "type": "string"
            },
            "repo": {
                "_$id": "phovea_product/items/properties/repo",
                "default": "",
                "description": "either a full git url or in the form <GithubAccount>/<repo>",
                "examples": [
                    "Caleydo/ordino"
                ],
                "title": "repository to use",
                "type": "string"
            },
            "symlink": {
                "_$id": "phovea_product/items/properties/symlink",
                "default": "",
                "description": "Note symbolic links will be created to ensure the proper structure",
                "examples": [
                    "../myclone"
                ],
                "title": "location relative to the product directory which contains the clone repository",
                "type": "string"
            },
            "type": {
                "_$id": "phovea_product/items/properties/type",
                "default": "",
                "examples": [
                    "web",
                    "service",
                    "api"
                ],
                "title": "the type of product to build",
                "type": "string"
            }
        },
        "required": [
            "type",
            "repo"
        ],
        "type": "object"
    },
    "type": "array"
}