{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Format of the geometrical tetrahedron-volume description.",
    "description": "Description of the volumes that form the object through which the sound waves travel.\nSchema on github: https://github.com/Engineer2B/PowerCalculator-Schemas",
    "type": "object",
    "required": [
        "Nodes",
        "Values"
    ],
    "properties": {
        "Nodes": {
            "description": "The coordinates in space where the vertices/nodes of the mesh are located.",
            "type": "array",
            "items": {
                "type": "array",
                "minItems": 3,
                "maxItems": 3,
                "items": {
                    "type": "number"
                }
            }
        },
        "Elements": {
            "description": "The four node indices which together make up a tetrahedron.",
            "type": "array",
            "items": {
                "type": "array",
                "minItems": 4,
                "maxItems": 4,
                "items": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                }
            }
        },
        "Values": {
            "description": "The individual mesh objects.",
            "minItems": 1,
            "type": "array",
            "items": {
                "type": "object",
                "required": [
                    "ElementIndices",
                    "MediumName",
                    "Id"
                ],
                "properties": {
                    "ElementIndices": {
                        "description": "Array of the id of the element.",
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                        }
                    },
                    "MediumName": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The unique name of the medium."
                    },
                    "Id": {
                        "description": "Identifier for this volume. This identifier should be unique amongst all other volumes.",
                        "type": "integer",
                        "exclusiveMinimum": -1
                    }
                }
            }
        }
    }
}