{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ticexplorer-com/json-schema/ticexplorer-com-plan-list-schema.json",
  "title": "PlanList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ticexplorer-com-plans-api-openapi.yml#/components/schemas/PlanList",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/Plan"
      },
      "type": "array",
      "title": "Data"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor"
    },
    "needs": {
      "items": {
        "$ref": "#/$defs/Need"
      },
      "type": "array",
      "title": "Needs",
      "default": []
    },
    "next_steps": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Next Steps",
      "default": []
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "Need": {
      "properties": {
        "field": {
          "type": "string",
          "title": "Field",
          "description": "The missing input or condition, e.g. which_insurer, place_of_service, wait."
        },
        "why": {
          "type": "string",
          "title": "Why",
          "description": "Why it changes the answer and what to do."
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "field",
        "why"
      ],
      "title": "Need"
    },
    "Plan": {
      "properties": {
        "plan_id": {
          "type": "string",
          "title": "Plan Id",
          "description": "Pass as coverage.plan_id."
        },
        "payer": {
          "type": "string",
          "title": "Payer"
        },
        "plan_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan Name"
        },
        "sponsor_employer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sponsor Employer"
        },
        "sponsor_location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sponsor Location"
        },
        "plan_id_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan Id Type",
          "description": "ein (employer plan) or hios (marketplace) ..."
        },
        "plan_identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Plan Identifier"
        },
        "market": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Market"
        },
        "rate_files": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rate Files"
        },
        "price_source": {
          "type": "string",
          "title": "Price Source"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "plan_id",
        "payer",
        "price_source"
      ],
      "title": "Plan"
    }
  }
}