{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://schema.twindev.org/w3c-did/DidVerifiablePresentationV2",
    "title": "DidVerifiablePresentationV2",
    "description": "Interface describing a verifiable presentation.",
    "type": "object",
    "properties": {
        "@context": {
            "anyOf": [
                {
                    "const": "https://www.w3.org/ns/credentials/v2"
                },
                {
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
                            },
                            {
                                "const": "https://www.w3.org/ns/credentials/v2"
                            }
                        ]
                    },
                    "contains": {
                        "const": "https://www.w3.org/ns/credentials/v2"
                    },
                    "minContains": 1,
                    "maxContains": 1,
                    "minItems": 1
                }
            ],
            "description": "The context for the verifiable presentation."
        },
        "verifiableCredential": {
            "type": "array",
            "items": {
                "anyOf": [
                    {
                        "type": "string"
                    },
                    {
                        "$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredentialV2"
                    }
                ]
            },
            "description": "The data for the verifiable credentials."
        }
    },
    "required": [
        "@context"
    ],
    "allOf": [
        {
            "$ref": "https://schema.twindev.org/w3c-did/DidVerifiablePresentationCommon"
        }
    ]
}
