{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "anyOf": [
        {
            "$ref": "#/definitions/coreSchema"
        },
        {
            "items": {
                "$ref": "#/definitions/coreSchema"
            },
            "minItems": 1,
            "type": "array"
        }
    ],
    "definitions": {
        "coreSchema": {
            "anyOf": [
                {
                    "$ref": "#/definitions/vibrationChild_schema"
                },
                {
                    "$ref": "#/definitions/vibrationParent_schema"
                }
            ]
        },
        "numArray": {
            "items": {
                "type": "number"
            },
            "minItems": 1,
            "type": "array"
        },
        "vibrationChild_schema": {
            "description": "schema for a single vibration measurement",
            "properties": {
                "measurementDate": {
                    "_format": "date-time",
                    "type": "string"
                },
                "statistics": {
                    "default": {
                        "rms": [
                            1,
                            1
                        ]
                    },
                    "properties": {
                        "kurtosis": {
                            "$ref": "#/definitions/numArray"
                        },
                        "mean": {
                            "$ref": "#/definitions/numArray"
                        },
                        "rms": {
                            "$ref": "#/definitions/numArray"
                        },
                        "skewness": {
                            "$ref": "#/definitions/numArray"
                        },
                        "std": {
                            "$ref": "#/definitions/numArray"
                        }
                    },
                    "type": "object"
                }
            },
            "required": [
                "id",
                "parentId",
                "measurementDate",
                "additionalMeasurements"
            ],
            "type": "object"
        },
        "vibrationParent_schema": {
            "description": "schema for a series of vibration measurements",
            "properties": {
                "documentClass": {
                    "enum": [
                        "parentOfChunks"
                    ],
                    "type": "string"
                },
                "trackedFlag": {
                    "type": "boolean"
                }
            },
            "required": [
                "id",
                "documentClass",
                "nominalFreq",
                "trackedFlag"
            ],
            "type": "object"
        }
    },
    "description": "container schema for all Metadata from streamsapi"
}