{
  "$defs": {
    "Envelope": {
      "description": "Envelope wraps around a document adding headers and digital signatures.",
      "properties": {
        "$schema": {
          "description": "Schema identifies the schema that should be used to understand this document",
          "title": "JSON Schema ID",
          "type": "string"
        },
        "doc": {
          "$ref": "https://gobl.org/draft-0/schema/object",
          "description": "The data inside the envelope",
          "title": "Document"
        },
        "head": {
          "$ref": "https://gobl.org/draft-0/head/header",
          "description": "Details on what the contents are",
          "title": "Header"
        },
        "sigs": {
          "description": "JSON Web Signatures of the header",
          "items": {
            "$ref": "https://gobl.org/draft-0/dsig/signature"
          },
          "title": "Signatures",
          "type": "array"
        }
      },
      "required": [
        "$schema",
        "head",
        "doc"
      ],
      "type": "object"
    }
  },
  "$id": "https://gobl.org/draft-0/envelope",
  "$ref": "#/$defs/Envelope",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}