content: {
    "$defs": {
      "Note": {
        "description": "Note represents a free text of additional information that may be added to a document.",
        "properties": {
          "code": {
            "description": "Code used for additional data that may be required to identify the note.",
            "title": "Code",
            "type": "string"
          },
          "key": {
            "$ref": "https://gobl.org/draft-0/cbc/key",
            "description": "Key specifying subject of the text",
            "oneOf": [
              {
                "const": "goods",
                "description": "Goods Description",
                "title": "Goods"
              },
              {
                "const": "payment",
                "description": "Terms of Payment",
                "title": "Payment"
              },
              {
                "const": "legal",
                "description": "Legal or regulatory information",
                "title": "Legal"
              },
              {
                "const": "dangerous-goods",
                "description": "Dangerous goods additional information",
                "title": "Dangerous Goods"
              },
              {
                "const": "ack",
                "description": "Acknowledgement Description",
                "title": "Acknowledgement"
              },
              {
                "const": "rate",
                "description": "Rate additional information",
                "title": "Rate"
              },
              {
                "const": "reason",
                "description": "Explanation of something relevant to the document",
                "title": "Reason"
              },
              {
                "const": "dispute",
                "description": "Details on a dispute.",
                "title": "Dispute"
              },
              {
                "const": "customer",
                "description": "Customer remarks",
                "title": "Customer"
              },
              {
                "const": "glossary",
                "description": "Glossary of terms",
                "title": "Glossary"
              },
              {
                "const": "customs",
                "description": "Customs declaration information",
                "title": "Customs"
              },
              {
                "const": "general",
                "description": "General information",
                "title": "General"
              },
              {
                "const": "handling",
                "description": "Handling instructions",
                "title": "Handling"
              },
              {
                "const": "packaging",
                "description": "Packaging information",
                "title": "Packaging"
              },
              {
                "const": "loading",
                "description": "Loading instructions",
                "title": "Loading"
              },
              {
                "const": "price",
                "description": "Price conditions",
                "title": "Price"
              },
              {
                "const": "priority",
                "description": "Priority information",
                "title": "Priority"
              },
              {
                "const": "regulatory",
                "description": "Regulatory information",
                "title": "Regulatory"
              },
              {
                "const": "safety",
                "description": "Safety instructions",
                "title": "Safety"
              },
              {
                "const": "ship-line",
                "description": "Ship line",
                "title": "Ship Line"
              },
              {
                "const": "supplier",
                "description": "Supplier remarks",
                "title": "Supplier"
              },
              {
                "const": "transport",
                "description": "Transportation information",
                "title": "Transport"
              },
              {
                "const": "delivery",
                "description": "Delivery information",
                "title": "Delivery"
              },
              {
                "const": "quarantine",
                "description": "Quarantine information",
                "title": "Quarantine"
              },
              {
                "const": "tax",
                "description": "Tax declaration",
                "title": "Tax"
              }
            ],
            "title": "Key"
          },
          "meta": {
            "$ref": "https://gobl.org/draft-0/cbc/meta",
            "description": "Additional information about the note",
            "title": "Meta"
          },
          "src": {
            "$ref": "https://gobl.org/draft-0/cbc/key",
            "description": "Source of this note, especially useful when auto-generated.",
            "title": "Source"
          },
          "text": {
            "description": "The contents of the note",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      }
    },
    "$id": "https://gobl.org/draft-0/cbc/note",
    "$ref": "#/$defs/Note",
    "$schema": "https://json-schema.org/draft/2020-12/schema"
  }