{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Scenario Reasoner output for scenarioinfo method",
    "type": "object",
    "properties": {
        "result": {
            "type": "object",
            "additionalProperties": true,
            "title": "Result of the method scenarioInfo",
            "description": "This sub-schema describes the result of the method scenarioInfo",
            "name": "result",
            "properties": {
                "id": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The ID of the scenario",
                    "example": "gmd4"
                },
                "name": {
                    "type": "string",
                    "description": "The name of the scenario",
                    "example": "Game Merchant Dialogue"
                },
                "language": {
                    "type": "string",
                    "description": "The language of the scenario",
                    "example": "en"
                },
                "description": {
                    "type": "string",
                    "description": "The description of the scenario"
                },
                "difficulty": {
                    "type": "string",
                    "minLength": 1,
                    "title": "Difficulty of scenario",
                    "description": "Indicates the scenario difficulty",
                    "default": "medium"
                },
                "version": {
                    "type": "integer",
                    "description": "The version of the scenario"
                },
                "characters": {
                    "type": "array",
                    "description": "The characters of the scenario",
                    "items": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string",
                                "description": "The id of the character"
                            },
                            "name": {
                                "type": "string",
                                "decription": "The name of the character"
                            }
                        },
                        "required": [
                            "id"
                        ]
                    }
                },
                "expressions": {
                    "type": "array",
                    "description": "The expressions for this scenario",
                    "items": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string",
                                "description": "The id of the expression"
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the expression"
                            },
                            "description": {
                                "type": "string",
                                "description": "The description of the expression"
                            },
                            "type": {
                                "anyOf": [
                                    {
                                        "type": "string",
                                        "example": "string"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string",
                                                "example": "list"
                                            }
                                        },
                                        "required": [
                                            "name"
                                        ],
                                        "additionalProperties": true
                                    }
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    }
                },
                "userDefinedParameters": {
                    "type": "array",
                    "description": "The user-defined parameters for this scenario",
                    "items": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string",
                                "description": "The id of the parameter",
                                "pattern": "^p([0-9]+)|t$"
                            },
                            "name": {
                                "type": "string",
                                "description": "The name of the parameter",
                                "example": "Interacting"
                            },
                            "description": {
                                "type": "string",
                                "description": "The description of the parameter",
                                "example": "If the player is interacting with the merchant."
                            },
                            "type": {
                                "anyOf": [
                                    {
                                        "type": "string",
                                        "example": "string"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string",
                                                "example": "list"
                                            }
                                        },
                                        "required": [
                                            "name"
                                        ],
                                        "additionalProperties": true
                                    }
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    }
                },
                "propertyValues": {
                    "type": "object",
                    "description": "The statement-independent property values for this scenario",
                    "properties": {
                        "independent": {
                            "type": "object"
                        },
                        "perCharacter": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "object"
                            }
                        }
                    }
                }
            }
        },
        "id": {
            "description": "A value identifying this response, equal to the id of the request or null"
        },
        "error": {
            "type": "null"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "result",
        "error",
        "id",
        "version"
    ],
    "additionalProperties": false
}