{
  "$id": "https://schemata.openattestation.com/io/tradetrust/bill-of-lading/1.0",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "required": ["scac", "blNumber"],
  "properties": {
    "name": {
      "type": "string"
    },
    "scac": {
      "type": "string"
    },
    "blNumber": {
      "type": "string"
    },
    "vessel": {
      "type": "string"
    },
    "voyageNo": {
      "type": "string"
    },
    "portOfLoading": {
      "type": "string"
    },
    "portOfDischarge": {
      "type": "string"
    },
    "carrierName": {
      "type": "string"
    },
    "placeOfReceipt": {
      "type": "string"
    },
    "placeOfDelivery": {
      "type": "string"
    },
    "packages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "weight": {
            "type": "string"
          },
          "measurement": {
            "type": "string"
          }
        }
      }
    },
    "shipper": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "address": {
          "type": "object",
          "properties": {
            "street": {
              "type": "string"
            },
            "country": {
              "type": "string"
            }
          }
        }
      }
    },
    "consignee": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "notifyParty": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "object",
          "properties": {
            "href": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
