{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/DefinedTermSet/v1/schema.json",
  "title": "DefinedTermSet",
  "description": "Objects Grid DefinedTermSet Object. A set of coded terms, such as the error codes of one of your APIs: each term is a DefinedTerm pointing to it (inDefinedTermSet), listed in hasDefinedTerm. domain says who defines the codes: a code is unique within its domain. Modeled in compliance with https://schema.org/DefinedTermSet.",
  "type": "object",
  "properties": {
    "at_context": {
      "description": "Schema context",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "https://schema.org"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_type": {
      "description": "The object type",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "DefinedTermSet"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This DefinedTermSet's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>: its JSON-LD @id, which References point to. Set by the service.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "readOnly": true
    },
    "id": {
      "description": "The unique identifier for DefinedTermSet. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for DefinedTermSet. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This DefinedTermSet URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The set's name, e.g. Orders API errors",
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "description": {
      "description": "What the set is",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "mainEntityOfPage": {
      "description": "Your page about it, e.g. https://docs.example.com/errors/",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "domain": {
      "description": "Who defines the set's codes, your domain, e.g. example.com: your API returns it with each code, as ObjectsGrid's own errors return objectsgrid.com. ObjectsGrid's own field.",
      "type": "string",
      "pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$",
      "maxLength": 253
    },
    "hasDefinedTerm": {
      "description": "The terms of the set. Computed, read-only: the objects whose DefinedTerm.inDefinedTermSet points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "DefinedTerm.inDefinedTermSet",
      "readOnly": true
    },
    "tags": {
      "description": "Tags an ABAC policy can decide on. A name may repeat; the same name and value appear once. Every stored object has them: created empty when not sent, kept by a replacement (PUT) that does not mention them, unchanged by a patch that does not mention them, cleared by null or [].",
      "type": "array",
      "default": [],
      "uniqueItems": true,
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Tag/v1/schema.json"
      }
    },
    "meta": {
      "description": "System-managed metadata for the object (version, audit fields). Assigned by the server.",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
      "readOnly": true
    }
  },
  "required": [
    "name",
    "domain"
  ],
  "unevaluatedProperties": false
}
