{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/professorotter-com/json-schema/professorotter-com-color-by-number-schema.json",
  "title": "ColorByNumber",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/professorotter-com-openapi.json#/components/schemas/ColorByNumber",
  "oneOf": [
    {
      "type": "object",
      "required": [
        "type",
        "slug",
        "title",
        "level",
        "description",
        "colorCount",
        "colors",
        "kind",
        "spaces",
        "url",
        "pdfUrl",
        "markdownUrl"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "color-by-number"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "level": {
          "type": "string",
          "enum": [
            "easy",
            "challenge",
            "expert"
          ]
        },
        "description": {
          "type": "string"
        },
        "colorCount": {
          "type": "integer"
        },
        "colors": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "number",
              "name",
              "hex"
            ],
            "properties": {
              "number": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "hex": {
                "type": "string"
              }
            }
          }
        },
        "kind": {
          "type": "string",
          "const": "region"
        },
        "spaces": {
          "type": "integer"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "pdfUrl": {
          "type": "string",
          "format": "uri"
        },
        "markdownUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "type",
        "slug",
        "title",
        "level",
        "description",
        "colorCount",
        "colors",
        "kind",
        "rows",
        "columns",
        "url",
        "pdfUrl",
        "markdownUrl"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "color-by-number"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "level": {
          "type": "string",
          "enum": [
            "easy",
            "challenge",
            "expert"
          ]
        },
        "description": {
          "type": "string"
        },
        "colorCount": {
          "type": "integer"
        },
        "colors": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "number",
              "name",
              "hex"
            ],
            "properties": {
              "number": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "hex": {
                "type": "string"
              }
            }
          }
        },
        "kind": {
          "type": "string",
          "const": "pixel"
        },
        "rows": {
          "type": "integer"
        },
        "columns": {
          "type": "integer"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "pdfUrl": {
          "type": "string",
          "format": "uri"
        },
        "markdownUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  ]
}