{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usps/json-schema/usps-manifest-schema.json",
  "title": "Manifest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usps-containers-openapi.yml#/components/schemas/Manifest",
  "required": [
    "containers"
  ],
  "type": "object",
  "properties": {
    "mailingDate": {
      "$ref": "#/$defs/MailingDateOptions"
    },
    "containers": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "nullable": false
      }
    }
  },
  "$defs": {
    "MailingDate": {
      "type": "string",
      "description": "The date package will be mailed. The mailing date may be today plus 0 to 7 days in advance. Enter the date in the full-date notation as defined by [RFC 3339, section 5.6](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6).",
      "format": "date"
    },
    "MailingDateOptions": {
      "description": "The mailing date for when the container will be shipped, when\nincluded in the request all packages nested to the container will be\nupdated to align with the associated mailingDate. The mailing date may\nbe today plus 0 to 7 days in advance. If it is not provided it will\nbe set as today.\n",
      "type": "string",
      "oneOf": [
        {
          "$ref": "#/$defs/MailingDate"
        },
        {
          "$ref": "#/$defs/MailingDateTime"
        }
      ]
    },
    "MailingDateTime": {
      "type": "string",
      "description": "The date and time a package will be mailed. The mailing date may be today plus 0 to 7 days in advance. Enter the date in the date-time notation as defined by [RFC 3339, section 5.6](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6).",
      "format": "date-time"
    }
  }
}