{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id" : "postAssertion-200-400-401-404-405-500-responsepayload-schema.json",
    "title" : "Open Badges Version 2.1 IMS Candidate Final JSON Schema Binding (postAssertion-200-400-401-404-405-500-responsepayload-schema)",
    "description" : "Author-Alexander Hripak, Nate Otto, Justin Pitcher, and Chris Houston;  Version-2.1;  Release Date-August 29, 2019. ",
    "type" : "object",
    "properties" : {
        "status" : {
            "description" : "The status of the request.",
            "$ref" : "#/definitions/StatusDType"
        }
    },
    "required" : [ "status" ],
    "additionalProperties" : false,
    "definitions" : {
        "StatusDType" : {
            "description" : "Response status.",
            "type" : "object",
            "properties" : {
                "error" : {
                    "description" : "Model Primitive Datatype = String. A nullable string and the human-readable message describing the problem.",
                    "type" : "string"
                },
                "statusCode" : {
                    "description" : "Model Primitive Datatype = Integer. The HTTP status code of the response.",
                    "type" : "integer",
                    "format" : "int32"
                },
                "statusText" : {
                    "description" : "A string matching one of the enumerated and allowed values for the given endpoint.",
                    "type" : "string",
                    "enum" : [ "OK","REQUEST_VALIDATION_ERROR","RECIPIENT_PROFILE_MISMATCH","INVALID_BADGE","BAD_REQUEST","UNAUTHENTICATED","PERMISSION_DENIED","NOT_FOUND","METHOD_NOT_ALLOWED" ]
                }
            },
            "required" : [ "statusCode" ],
            "additionalProperties" : false
        }
    }
}
