{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-policies-schema.json",
  "title": "Policies",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-medicare-policy-api-openapi.yml#/components/schemas/Policies",
  "type": "object",
  "properties": {
    "code": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Code"
      }
    },
    "link": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Code": {
      "type": "object",
      "properties": {
        "policy": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Policy"
          }
        },
        "value": {
          "type": "string"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "Policy": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "effectiveDate": {
          "type": "string"
        },
        "endDate": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "cmsId": {
          "type": "string"
        }
      }
    }
  }
}