{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Taxonomy",
    "description": "Taxonomy Schema Payload for Updating Service.",
    "type": "object",
    "required": [
        "vocabularyId",
        "vocabularyName",
        "vocabularyValues"
    ],
    "additionalItems": false,
    "properties": {
        "vocabularyId": {
            "description": "The unique identifier for the vocabulary.",
            "type": "integer"
        },
        "vocabularyName": {
            "description": "The vocabulary name.",
            "type": "string"
        },
        "vocabularyValues": {
            "description": "Types allowed in this vocabulary.",
            "type": "array",
            "minItems": 1,
            "_uniqueItems": true,
            "items": {
                "type": "object",
                "required": [
                    "valueId",
                    "valueName"
                ],
                "additionalItems": false,
                "properties": {
                    "valueId": {
                        "description": "The unique identifier for the vocabulary type.",
                        "type": "integer"
                    },
                    "valueName": {
                        "description": "The value the vocabulary type.",
                        "type": "string"
                    }
                }
            }
        }
    }
}