{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://www.ircatlas.org/v1/ircv3.schema.json",
    "title": "IRC Atlas IRCv3 comparison",
    "description": "Which IRCv3 capabilities and server features each published network advertises. A null capabilities or features value means not known, while an empty list means nothing was advertised.",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "schema_version",
        "generated_at",
        "license",
        "attribution",
        "method",
        "capabilities",
        "features",
        "networks"
    ],
    "properties": {
        "schema_version": {
            "type": "integer",
            "enum": [
                1
            ]
        },
        "generated_at": {
            "type": "string",
            "format": "date-time"
        },
        "license": {
            "type": "string"
        },
        "attribution": {
            "type": "string"
        },
        "method": {
            "type": "string"
        },
        "capabilities": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "name",
                    "group",
                    "networks",
                    "user_share",
                    "spec_url"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "group": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "draft",
                            "vendor"
                        ]
                    },
                    "networks": {
                        "type": "integer"
                    },
                    "user_share": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "spec_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            }
        },
        "features": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "name",
                    "group",
                    "networks",
                    "user_share",
                    "spec_url"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "group": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "draft",
                            "vendor"
                        ]
                    },
                    "networks": {
                        "type": "integer"
                    },
                    "user_share": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "spec_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            }
        },
        "networks": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "id",
                    "name",
                    "checked_on",
                    "capabilities",
                    "features"
                ],
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "checked_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "capabilities": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "name",
                                "value"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "features": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "name",
                                "value"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
