{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/colissimo/main/json-schema/colissimo-response-schema.json",
  "title": "Response",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/colissimo-sls-openapi.yml#/components/schemas/Response",
  "type": "object",
  "properties": {
    "length": {
      "type": "integer",
      "format": "int32"
    },
    "location": {
      "type": "string",
      "format": "uri"
    },
    "language": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "variant": {
          "type": "string"
        },
        "script": {
          "type": "string"
        },
        "unicodeLocaleAttributes": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "unicodeLocaleKeys": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "displayLanguage": {
          "type": "string"
        },
        "displayScript": {
          "type": "string"
        },
        "displayCountry": {
          "type": "string"
        },
        "displayVariant": {
          "type": "string"
        },
        "extensionKeys": {
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "iso3Language": {
          "type": "string"
        },
        "iso3Country": {
          "type": "string"
        }
      }
    },
    "date": {
      "type": "string",
      "format": "date-time"
    },
    "lastModified": {
      "type": "string",
      "format": "date-time"
    },
    "stringHeaders": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "closed": {
      "type": "boolean"
    },
    "metadata": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object"
        }
      }
    },
    "status": {
      "type": "integer",
      "format": "int32"
    },
    "mediaType": {
      "$ref": "#/$defs/MediaType"
    },
    "cookies": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/NewCookie"
      }
    },
    "allowedMethods": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "statusInfo": {
      "$ref": "#/$defs/StatusType"
    },
    "entityTag": {
      "$ref": "#/$defs/EntityTag"
    },
    "links": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "headers": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object"
        }
      }
    },
    "entity": {
      "type": "object"
    }
  },
  "$defs": {
    "EntityTag": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "weak": {
          "type": "boolean"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "uriBuilder": {
          "$ref": "#/$defs/UriBuilder"
        },
        "rel": {
          "type": "string"
        },
        "rels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "title": {
          "type": "string"
        },
        "params": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "uri": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "MediaType": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "subtype": {
          "type": "string"
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "wildcardType": {
          "type": "boolean"
        },
        "wildcardSubtype": {
          "type": "boolean"
        }
      }
    },
    "NewCookie": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "version": {
          "type": "integer",
          "format": "int32"
        },
        "path": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "maxAge": {
          "type": "integer",
          "format": "int32"
        },
        "expiry": {
          "type": "string",
          "format": "date-time"
        },
        "secure": {
          "type": "boolean"
        },
        "httpOnly": {
          "type": "boolean"
        },
        "sameSite": {
          "type": "string",
          "enum": [
            "NONE",
            "LAX",
            "STRICT"
          ]
        }
      }
    },
    "StatusType": {
      "type": "object",
      "properties": {
        "family": {
          "type": "string",
          "enum": [
            "INFORMATIONAL",
            "SUCCESSFUL",
            "REDIRECTION",
            "CLIENT_ERROR",
            "SERVER_ERROR",
            "OTHER"
          ]
        },
        "reasonPhrase": {
          "type": "string"
        },
        "statusCode": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "UriBuilder": {
      "type": "object"
    }
  }
}