{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id" : "getManifest-200-responsepayload-schema.json",
    "title" : "Open Badges Version 2.1 IMS Candidate Final JSON Schema Binding (getManifest-200-responsepayload-schema)",
    "description" : "Author-Alexander Hripak, Nate Otto, Justin Pitcher, and Chris Houston;  Version-2.1;  Release Date-August 29, 2019. ",
    "type" : "object",
    "properties" : {
        "id" : {
            "description" : "Model Primitive Datatype = NormalizedString. Unique IRI for the manifest.",
            "type" : "string"
        },
        "type" : {
            "description" : "Model Primitive Datatype = NormalizedString. The JSON-LD type of this object. Normally 'Manifest'.",
            "type" : "string",
            "default" : "Manifest"
        },
        "badgeConnectAPI" : {
            "description" : "Set of BadgeConnectAPI configurations.",
            "type" : "array",
            "minItems" : 1,
            "items" : {
                "$ref" : "#/definitions/BadgeConnectAPIDType"
            }
        }
    },
    "required" : [ "id","badgeConnectAPI" ],
    "additionalProperties" : false,
    "definitions" : {
        "BadgeConnectAPIDType" : {
            "description" : "Configuration information about a single implementation.",
            "type" : "object",
            "properties" : {
                "id" : {
                    "description" : "Model Primitive Datatype = NormalizedString. Unique IRI for the configuration.",
                    "type" : "string"
                },
                "type" : {
                    "description" : "Model Primitive Datatype = NormalizedString. The JSON-LD type of this object. Normally 'BadgeConnectAPI'.",
                    "type" : "string"
                },
                "apiBase" : {
                    "description" : "Model Primitive Datatype = AnyURI. Fully qualified URL that will be concatenated with the API endpoints. It SHOULD NOT have a trailing slash '/'. E.g. apiBase + '/assertions'.",
                    "type" : "string",
                    "format" : "uri"
                },
                "authorizationUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the host's authorization endpoint.",
                    "type" : "string",
                    "format" : "uri"
                },
                "image" : {
                    "description" : "Model Primitive Datatype = AnyURI. An image representing the platform. May be a URI to a hosted image or a Data URI.",
                    "type" : "string",
                    "format" : "uri"
                },
                "name" : {
                    "description" : "Model Primitive Datatype = String. The name of the platform supporting the API. This SHOULD reflect the user-facing identity of the platform requesting authorization.",
                    "type" : "string"
                },
                "privacyPolicyUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the platform's privacy policy. Other platforms SHOULD link to this resource as part of their authorization interface.",
                    "type" : "string",
                    "format" : "uri"
                },
                "registrationUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the host's dynamic client registration endpoint.",
                    "type" : "string",
                    "format" : "uri"
                },
                "scopesOffered" : {
                    "description" : "Model Primitive Datatype = AnyURI. Applies to Hosts only. An array of strings listing the scopes supported by the Host in the form of fully qualified URLs to the scope descriptors.",
                    "type" : "array",
                    "minItems" : 1,
                    "items" : {
                        "type" : "string",
                        "format" : "uri"
                    }
                },
                "termsOfServiceUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the platform's terms of service. Other platforms SHOULD link to this resource as part of their authorization interface.",
                    "type" : "string",
                    "format" : "uri"
                },
                "tokenRevocationUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the host's token revocation endpoint.",
                    "type" : "string",
                    "format" : "uri"
                },
                "tokenUrl" : {
                    "description" : "Model Primitive Datatype = AnyURI. A fully qualified URL to the host's token request endpoint for exchanging an authorization code for a bearer token.",
                    "type" : "string",
                    "format" : "uri"
                },
                "version" : {
                    "description" : "Model Primitive Datatype = String. A string representing the implemented version. MUST be in the format of vMAJORpMINOR where MAJOR and MINOR are integers.",
                    "type" : "string"
                }
            },
            "required" : [ "apiBase","authorizationUrl","name","privacyPolicyUrl","registrationUrl","scopesOffered","termsOfServiceUrl","tokenUrl","version" ],
            "additionalProperties" : false
        }
    }
}
