{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "IBM App Connect Template Gallery metadata schema",
    "type": "object",
    "properties": {
        "templates": {
            "type": "array",
            "items": {
                "title": "Template",
                "description": "A template from the template catalog",
                "type": "object",
                "properties": {
                    "name": {
                        "description": "The name of the template",
                        "type": "string",
                        "maxLength": 98
                    },
                    "description": {
                        "description": "A description of the flow created with the template",
                        "type": "string"
                    },
                    "summary": {
                        "description": "A summary of the flow created with the template",
                        "type": "string"
                    },
                    "sourceApp": {
                        "description": "The trigger application that triggers the flow",
                        "type": "string"
                    },
                    "targetApps": {
                        "description": "A list of the target applications that triggering the flow effects",
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 1
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "offerings": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "name",
                    "summary",
                    "sourceApp",
                    "targetApps",
                    "tags",
                    "offerings"
                ],
                "additionalProperties": false
            }
        }
    }
}