{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "uhlinearchannelprocedure.json",
    "title": "UHLinearChannelProcedure",
    "type": "object",
    "description": "Unit Hydrograph linear channel procedure function",
    "allOf": [
        {
            "$ref": "procedure.json"
        }
    ],
    "properties": {
        "type": {
            "type": "string",
            "enum": [
                "UHLinearChannel",
                "UHLinearChannelProcedure"
            ]
        },
        "parameters": {
            "type": "object",
            "description": "Model parameters",
            "properties": {
                "u": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                        "type": "number"
                    },
                    "description": "distribution function that represent the apportionment of the unit pulse. Array of numbers"
                }
            },
            "required": ["u"],
            "additionalProperties": false
        },
        "extra_pars": {
            "type": "object",
            "description": "Additional, non-calibratable parameters",
            "properties": {
                "dt": {
                    "type": "number",
                    "description": "calculation timestep (1 = the timestep of the input series). Default: 1"
                }       
            }
        },
        "boundaries": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "type": "array",
                    "items": {
                        "allOf": [
                            { 
                                "$ref": "procedureboundary.json"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "enum": ["input"]
                                    }
                                }
                            }
                        ]
                    },
                    "minItems": 1,
                    "maxItems": 1
                },
                {
                    "type": "array",
                    "items": {
                        "$ref": "observationlist.json"
                    }
                }
            ]
        },
        "outputs": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "type": "array",
                    "items": {
                        "allOf": [
                            { 
                                "$ref": "procedureboundary.json"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "enum": ["output"]
                                    }
                                }
                            }
                        ]
                    },
                    "minItems": 1,
                    "maxItems": 1
                },
                {
                    "type": "array",
                    "items": {
                        "$ref": "observationlist.json"
                    }
                }
            ]
        }
    },
    "required": [
        "type",
        "parameters"
    ]
}