{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-describe-packages-request-schema.json",
  "title": "DescribePackagesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-packages-api-openapi.yml#/components/schemas/DescribePackagesRequest",
  "type": "object",
  "properties": {
    "Filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DescribePackagesFilter"
      },
      "description": "Only returns packages that match the DescribePackagesFilterList values."
    },
    "MaxResults": {
      "type": "integer",
      "description": "An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results."
    },
    "NextToken": {
      "type": "string",
      "description": "If your initial DescribePackageFilters operation returns a nextToken, you can include the returned nextToken in subsequent DescribePackageFilters operations, which returns results in the next page."
    }
  },
  "$defs": {
    "DescribePackagesFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "PackageID",
            "PackageName",
            "PackageStatus",
            "PackageType",
            "EngineVersion",
            "PackageOwner"
          ],
          "description": "Any field from PackageDetails."
        },
        "Value": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A non-empty list of values for the specified filter field."
        }
      }
    }
  }
}