{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "lax ingest+publish response schema",
    "id": "https://lax.elifesciences.org/ingest-publish-response-schema.json",
    "properties": {
        "datetime": {
            "_format": "date-time",
            "description": "the date and time in ISO 8601 UTC when this message was sent. if 'status' is either 'ingested' or 'published', then this is the date and time recorded in lax",
            "type": "string"
        },
        "id": {
            "description": "the article identifier, potentially without leading zeroes. if original request could not be parsed, a null value will be returned",
            "type": "string"
        },
        "message": {
            "description": "elaborates on the status. if invalid, what is invalid. if in error, what failed.",
            "type": "string"
        },
        "requested-action": {
            "enum": [
                "ingest",
                "publish",
                "ingest+publish"
            ]
        },
        "status": {
            "enum": [
                "ingested",
                "published",
                "invalid",
                "error"
            ]
        },
        "token": {
            "description": "data from original request to be returned to the sender once action complete. if original request could not be parsed, a null value will be returned",
            "type": "string"
        }
    },
    "required": [
        "status",
        "id",
        "token",
        "datetime"
    ],
    "type": "object"
}