{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-types-duration-schema.json",
  "title": "_types.Duration",
  "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-ccr-api-openapi.yml#/components/schemas/_types.Duration",
  "oneOf": [
    {
      "type": "string"
    },
    {
      "type": "string",
      "enum": [
        "-1"
      ]
    },
    {
      "type": "string",
      "enum": [
        "0"
      ]
    }
  ]
}