{
  "$defs": {
    "Header": {
      "description": "Header defines the metadata of the body.",
      "properties": {
        "dig": {
          "$ref": "https://gobl.org/draft-0/dsig/digest",
          "description": "Digest of the canonical JSON body.",
          "title": "Digest"
        },
        "draft": {
          "description": "When true, implies that this document should not be considered final. Digital signatures are optional.",
          "title": "Draft",
          "type": "boolean"
        },
        "meta": {
          "$ref": "https://gobl.org/draft-0/cbc/meta",
          "description": "Additional semi-structured information about this envelope.",
          "title": "Meta"
        },
        "notes": {
          "description": "Any information that may be relevant to other humans about this envelope",
          "title": "Notes",
          "type": "string"
        },
        "stamps": {
          "description": "Seals of approval from other organisations that can only be added to\nnon-draft envelopes.",
          "items": {
            "$ref": "https://gobl.org/draft-0/head/stamp"
          },
          "title": "Stamps",
          "type": "array"
        },
        "tags": {
          "description": "Set of labels that describe but have no influence on the data.",
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "uuid": {
          "description": "Unique UUIDv1 identifier for the envelope.",
          "format": "uuid",
          "title": "UUID",
          "type": "string"
        }
      },
      "required": [
        "uuid",
        "dig"
      ],
      "type": "object"
    }
  },
  "$id": "https://gobl.org/draft-0/head/header",
  "$ref": "#/$defs/Header",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}