{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "binding": {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "projectId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "workspaceId",
        "projectId"
      ],
      "additionalProperties": false
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Optimistic concurrency revision; supply it as expectedRevision on the next write."
    },
    "asOfRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "definitions": {
      "maxItems": 70,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Resource identifier returned by the operation."
          },
          "family": {
            "type": "string",
            "enum": [
              "organizational",
              "subtype",
              "semantic"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#[a-fA-F0-9]{6}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "order": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "retired": {
            "type": "boolean"
          },
          "parentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "taxonomyVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "definition": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "inclusions": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "exclusions": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "positiveExamples": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "negativeExamples": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "insufficientEvidence": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "id",
          "family",
          "name"
        ],
        "additionalProperties": {}
      }
    },
    "settings": {
      "type": "object",
      "properties": {
        "taxonomyVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "roleAliases": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "roleGroups": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "hiddenRoleIds": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "roleOrder": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "suggestionsPaused": {
          "type": "boolean"
        },
        "automaticLabels": {
          "type": "boolean",
          "const": false
        },
        "renderedImages": {
          "type": "boolean",
          "const": false
        },
        "semanticAlerts": {
          "type": "boolean",
          "const": false
        },
        "feedbackReuse": {
          "type": "boolean",
          "const": false
        }
      },
      "additionalProperties": false
    },
    "origins": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string",
        "enum": [
          "default",
          "workspace",
          "project"
        ]
      }
    },
    "workspaceRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "projectRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "inferenceEffect": {
      "type": "string",
      "const": "none"
    },
    "enrollmentEffect": {
      "type": "string",
      "const": "none"
    },
    "readAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    }
  },
  "required": [
    "binding",
    "revision",
    "asOfRevision",
    "definitions",
    "settings",
    "origins",
    "workspaceRevision",
    "projectRevision",
    "inferenceEffect",
    "enrollmentEffect",
    "readAt"
  ],
  "additionalProperties": {}
}
