{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thrustlab-com/json-schema/thrustlab-com-analyze-geometry-response-schema.json",
  "title": "AnalyzeGeometryResponse",
  "description": "Bounded aero-only union response for all three modes.\n\nEvery field is optional so a single shape carries a point, a sweep, OR a\nnon-converged solve (``converged: false`` + ``reason``). NO motor/battery\nfield anywhere.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thrustlab-com-openapi.json#/components/schemas/AnalyzeGeometryResponse",
  "properties": {
    "Cp": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cp"
    },
    "Cp_raw": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Power coefficient from the raw blade-element solve, before the empirical correction.",
      "title": "Cp Raw"
    },
    "Ct": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ct"
    },
    "Ct_raw": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Thrust coefficient from the raw blade-element solve, before the empirical correction. The `stations` table integrates to this.",
      "title": "Ct Raw"
    },
    "J": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "J"
    },
    "converged": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Converged"
    },
    "efficiency": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Efficiency"
    },
    "envelope_limiting_factor": {
      "anyOf": [
        {
          "enum": [
            "advance_ratio",
            "tip_mach",
            "pitch_diameter",
            "thrust_coefficient",
            "diameter",
            "blade_count"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Which dimension takes this solve outside the validation envelope. Absent when `envelope_status` is `validated` or absent.",
      "title": "Envelope Limiting Factor"
    },
    "envelope_status": {
      "anyOf": [
        {
          "enum": [
            "validated",
            "partial",
            "outside"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Where this solve sits relative to the published validation envelope (17 two-bladed APC Thin-Electric propellers, in diameter, advance ratio J <= 0.95, tip Mach <= 0.43). `validated` = operating point and propeller both inside it. `partial` = outside in one dimension but still carrying most of the validated model — the common case, and not an error. `outside` = far enough out that the answer is the underlying physics model's own prediction. Absent when the envelope could not be established for this solve.",
      "title": "Envelope Status"
    },
    "mode": {
      "title": "Mode",
      "type": "string"
    },
    "object": {
      "default": "geometry_analysis",
      "title": "Object",
      "type": "string"
    },
    "power": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Power"
    },
    "power_raw": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Shaft power in W from the raw blade-element solve.",
      "title": "Power Raw"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason"
    },
    "rpm": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rpm"
    },
    "stations": {
      "items": {
        "$ref": "#/$defs/AnalyzeStationRow"
      },
      "title": "Stations",
      "type": "array"
    },
    "sweep_Cp": {
      "items": {
        "type": "number"
      },
      "title": "Sweep Cp",
      "type": "array"
    },
    "sweep_Ct": {
      "items": {
        "type": "number"
      },
      "title": "Sweep Ct",
      "type": "array"
    },
    "sweep_J": {
      "items": {
        "type": "number"
      },
      "title": "Sweep J",
      "type": "array"
    },
    "sweep_eta": {
      "items": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ]
      },
      "title": "Sweep Eta",
      "type": "array"
    },
    "thrust": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Thrust"
    },
    "thrust_raw": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Thrust in N from the raw blade-element solve. sum(dT_dr * dr) over `stations` equals THIS, not `thrust`.",
      "title": "Thrust Raw"
    },
    "torque_raw": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "description": "Torque in N·m from the raw blade-element solve. sum(dQ_dr * dr) over `stations` equals THIS.",
      "title": "Torque Raw"
    }
  },
  "required": [
    "mode"
  ],
  "type": "object",
  "$defs": {
    "AnalyzeStationRow": {
      "description": "One radial-station row of the per-station table. Aero quantities only.",
      "properties": {
        "Cd": {
          "title": "Cd",
          "type": "number"
        },
        "Cl": {
          "title": "Cl",
          "type": "number"
        },
        "Mach": {
          "title": "Mach",
          "type": "number"
        },
        "Re": {
          "title": "Re",
          "type": "number"
        },
        "beta_deg": {
          "title": "Beta Deg",
          "type": "number"
        },
        "chord": {
          "title": "Chord",
          "type": "number"
        },
        "dQ_dr": {
          "title": "Dq Dr",
          "type": "number"
        },
        "dT_dr": {
          "title": "Dt Dr",
          "type": "number"
        },
        "eta_local": {
          "title": "Eta Local",
          "type": "number"
        },
        "r_over_R": {
          "title": "R Over R",
          "type": "number"
        },
        "va": {
          "title": "Va",
          "type": "number"
        },
        "vt": {
          "title": "Vt",
          "type": "number"
        }
      },
      "required": [
        "r_over_R",
        "chord",
        "beta_deg",
        "Cl",
        "Cd",
        "Re",
        "Mach",
        "dT_dr",
        "dQ_dr",
        "va",
        "vt",
        "eta_local"
      ],
      "title": "AnalyzeStationRow",
      "type": "object"
    }
  }
}