{
    "id": "https://koriym.github.io/Polidog.Todo/todo.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Todo",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "The unique identifier for a todo."
        },
        "title": {
            "type": "string",
            "description": "The title of the todo",
            "minLength": 1,
            "maxLength": 255
        },
        "status": {
            "type": "string",
            "description": "2 if task has been completed",
            "enum": [
                "1",
                "2"
            ]
        },
        "status_name": {
            "description": "The name of the status",
            "type": "string",
            "maxLength": 255
        },
        "created": {
            "description": "The date and time that the todo was created",
            "type": "string",
            "format": "datetime"
        },
        "updated": {
            "description": "The date and time that the todo was last modified",
            "type": "string",
            "format": "datetime"
        }
    },
    "required": [
        "title",
        "status",
        "created",
        "updated"
    ],
    "additionalProperties": false
}