{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://schema.twindev.org/w3c-did/DidService",
    "title": "DidService",
    "description": "Interface describing a did document service.",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "The id of the service."
        },
        "type": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            ],
            "description": "The type of the service."
        },
        "serviceEndpoint": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            ],
            "description": "The endpoint for the service."
        }
    },
    "required": [
        "id",
        "type",
        "serviceEndpoint"
    ]
}
