{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/govseer-com/json-schema/govseer-com-shipping-fields-schema.json",
  "title": "ShippingFields",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/govseer-com-shipping-api-openapi.yml#/components/schemas/ShippingFields",
  "type": "object",
  "required": [
    "version",
    "notRegulated",
    "modes",
    "limitedQuantity",
    "flags"
  ],
  "properties": {
    "version": {
      "type": "string",
      "description": "Date of the rules applied."
    },
    "notRegulated": {
      "type": "boolean",
      "description": "Every transport mode on the sheet says not regulated."
    },
    "unNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "shippingName": {
      "type": [
        "string",
        "null"
      ]
    },
    "hazardClass": {
      "type": [
        "string",
        "null"
      ]
    },
    "packingGroup": {
      "type": [
        "string",
        "null"
      ]
    },
    "from": {
      "type": [
        "string",
        "null"
      ],
      "description": "The transport mode the fields above come from (the US one when printed)."
    },
    "modes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "mode",
          "notRegulated"
        ],
        "properties": {
          "mode": {
            "type": "string"
          },
          "notRegulated": {
            "type": "boolean"
          },
          "unNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "shippingName": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazardClass": {
            "type": [
              "string",
              "null"
            ]
          },
          "packingGroup": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "limitedQuantity": {
      "type": "object",
      "required": [
        "eligible"
      ],
      "properties": {
        "eligible": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "US ground: true when the class and packing group have the exception, false when not, null when the sheet does not settle it."
        },
        "innerLimitLiquid": {
          "type": [
            "string",
            "null"
          ]
        },
        "innerLimitSolid": {
          "type": [
            "string",
            "null"
          ]
        },
        "grossLimitKg": {
          "type": [
            "number",
            "null"
          ]
        },
        "ref": {
          "type": [
            "string",
            "null"
          ]
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "flammable_not_regulated",
          "corrosive_not_regulated",
          "class3_without_flammable",
          "class8_without_corrosive",
          "flash_point_low_not_flammable",
          "flash_point_high_but_flammable",
          "un_numbers_differ",
          "no_transport_section"
        ]
      }
    },
    "flashPoint": {
      "type": [
        "string",
        "null"
      ],
      "description": "Section 9, as printed."
    }
  }
}