{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asterwise-com/json-schema/asterwise-com-api-response-reference-charts-response-schema.json",
  "title": "ApiResponse[ReferenceChartsResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asterwise-com-vedic-reference-api-openapi.yml#/components/schemas/ApiResponse_ReferenceChartsResponse_",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success",
      "description": "True if the request succeeded",
      "default": true
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Human-readable status message",
      "default": "success"
    },
    "data": {
      "$ref": "#/$defs/ReferenceChartsResponse",
      "description": "The endpoint response payload"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "ReferenceChart": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "covers": {
          "type": "string",
          "title": "Covers",
          "description": "The hard case this chart exercises."
        },
        "input": {
          "additionalProperties": true,
          "type": "object",
          "title": "Input",
          "description": "The exact request body for /v1/astro/natal (time null = unknown birth time)."
        },
        "expected": {
          "additionalProperties": true,
          "type": "object",
          "title": "Expected",
          "description": "Reference values: UTC instant, local time status, true ayanamsa, planets (sidereal longitude, sign, nakshatra, pada, retrograde) and ascendant."
        },
        "reference_source": {
          "type": "string",
          "title": "Reference Source",
          "description": "Where the expected values come from. Never Asterwise."
        },
        "tolerance": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tolerance",
          "description": "How close a correct engine must come."
        }
      },
      "type": "object",
      "required": [
        "id",
        "covers",
        "input",
        "expected",
        "reference_source"
      ],
      "title": "ReferenceChart"
    },
    "ReferenceChartsResponse": {
      "properties": {
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "how_to_use": {
          "type": "string",
          "title": "How To Use"
        },
        "harness": {
          "type": "string",
          "title": "Harness"
        },
        "charts": {
          "items": {
            "$ref": "#/$defs/ReferenceChart"
          },
          "type": "array",
          "title": "Charts"
        }
      },
      "type": "object",
      "required": [
        "version",
        "how_to_use",
        "harness",
        "charts"
      ],
      "title": "ReferenceChartsResponse"
    }
  }
}