{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "POST /birds [request]",
    "description": "Add a new bird to the library",
    "type": "object",
    "required": [
        "id",
        "name",
        "family",
        "continents",
        "added",
        "visible"
    ],
    "additionalProperties": false,
    "properties": {
        "id": {
            "type": "string",
            "description": "Object id from the database"
        },
        "name": {
            "type": "string",
            "description": "English bird name"
        },
        "family": {
            "type": "string",
            "description": "Latin bird family name"
        },
        "continents": {
            "type": "array",
            "description": "Continents the bird exist on",
            "minItems": 1,
            "items": {
                "type": "string"
            },
            "_uniqueItems": true
        },
        "added": {
            "type": "string",
            "description": "Date the bird was added to the registry. Format YYYY-MM-DD"
        },
        "visible": {
            "type": "boolean",
            "description": "Determines if the bird should be visible in lists"
        }
    }
}