{
  "$defs": {
    "Identity": {
      "description": "Identity is used to define a code for a specific context.",
      "properties": {
        "code": {
          "$ref": "https://gobl.org/draft-0/cbc/code",
          "description": "The actual value of the identity code.",
          "title": "Code"
        },
        "description": {
          "description": "Description adds details about what the code could mean or imply",
          "title": "Description",
          "type": "string"
        },
        "key": {
          "$ref": "https://gobl.org/draft-0/cbc/key",
          "description": "Uniquely classify this identity using a key instead of a code.",
          "title": "Key"
        },
        "label": {
          "description": "Optional label useful for non-standard identities to give a bit more context.",
          "title": "Label",
          "type": "string"
        },
        "type": {
          "$ref": "https://gobl.org/draft-0/cbc/code",
          "description": "The type of Code being represented and usually specific for\na particular context, country, or tax regime, and cannot be used\nalongside the key.",
          "title": "Type"
        },
        "uuid": {
          "description": "Universally Unique Identifier.",
          "format": "uuid",
          "title": "UUID",
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  },
  "$id": "https://gobl.org/draft-0/org/identity",
  "$ref": "#/$defs/Identity",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}