{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://schema.twindev.org/w3c-did/DidVerifiableCredentialV1",
    "title": "DidVerifiableCredentialV1",
    "description": "Interface describing a verifiable credential.\nhttps://www.w3.org/TR/vc-data-model-1.1",
    "type": "object",
    "properties": {
        "@context": {
            "anyOf": [
                {
                    "const": "https://www.w3.org/2018/credentials/v1"
                },
                {
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
                            },
                            {
                                "const": "https://www.w3.org/2018/credentials/v1"
                            }
                        ]
                    },
                    "contains": {
                        "const": "https://www.w3.org/2018/credentials/v1"
                    },
                    "minContains": 1,
                    "maxContains": 1,
                    "minItems": 1
                }
            ],
            "description": "The context for the verifiable credential."
        },
        "issuanceDate": {
            "type": "string",
            "description": "The date the verifiable credential was issued, depending on version validFrom might be set instead."
        },
        "expirationDate": {
            "type": "string",
            "description": "The date the verifiable credential expires, depending on version validUntil might be set instead."
        }
    },
    "required": [
        "@context"
    ],
    "allOf": [
        {
            "$ref": "https://schema.twindev.org/w3c-did/DidVerifiableCredentialCommon"
        }
    ]
}
