{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "/comment/utteranc.json",
    "description": "Utterances comment plugin configurations",
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "const": "utteranc"
        },
        "repo": {
            "type": "string",
            "description": "GitHub repository to which Utterances connects"
        },
        "label": {
            "type": "string",
            "description": "Label assigned to issues created by Utterances",
            "nullable": true
        },
        "theme": {
            "type": "string",
            "description": "Utterances look and feel",
            "enum": [
                "github-light",
                "github-dark",
                "github-dark-orange",
                "icy-dark",
                "dark-blue",
                "photon-dark"
            ],
            "default": "github-light",
            "nullable": true
        }
    },
    "required": [
        "type",
        "repo"
    ],
    "oneOf": [
        {
            "type": "object",
            "properties": {
                "issue_term": {
                    "type": "string",
                    "description": "The mapping between blog posts and GitHub issues",
                    "default": "pathname"
                }
            },
            "required": [
                "issue_term"
            ]
        },
        {
            "type": "object",
            "properties": {
                "issue_number": {
                    "type": "integer",
                    "description": "Configure Utterances to load a specific issue by number"
                }
            },
            "required": [
                "issue_number"
            ]
        }
    ]
}