{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/mechanical.beam.deflection.input.json",
  "title": "Mechanical beam deflection (shared contract) — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "support": {
      "type": "string",
      "enum": [
        "simply_supported",
        "cantilever"
      ],
      "description": "v1: overhang deferred."
    },
    "L": {
      "type": "number",
      "description": "Span / length. Alias span, length."
    },
    "E": {
      "type": "number",
      "description": "Elastic modulus. Alias youngs, modulus."
    },
    "I": {
      "type": "number",
      "description": "Area moment. Alias Ix, inertia."
    },
    "loads": {
      "type": "array",
      "minItems": 1,
      "description": "Load cases. paired and moment.end=both are public sugar; engine normalizes.",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "type"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "point",
              "uniform",
              "triangular",
              "moment",
              "paired"
            ]
          },
          "P": {
            "type": "number"
          },
          "a": {
            "type": "number"
          },
          "w": {
            "type": "number"
          },
          "w0": {
            "type": "number"
          },
          "M": {
            "type": "number"
          },
          "end": {
            "type": "string",
            "enum": [
              "left",
              "right",
              "tip",
              "both"
            ]
          },
          "peak": {
            "type": "string"
          }
        }
      }
    },
    "query": {
      "description": "Object preferred; legacy string kind also accepted by the engine.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "kind"
          ],
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "tip",
                "midspan",
                "at_x",
                "under_load",
                "max"
              ]
            },
            "x": {
              "type": "number"
            },
            "load_id": {
              "type": "string"
            }
          }
        },
        {
          "type": "string",
          "enum": [
            "tip",
            "midspan",
            "at_x",
            "under_load",
            "max"
          ]
        }
      ]
    }
  },
  "required": [
    "support",
    "loads",
    "query",
    "L",
    "E",
    "I"
  ],
  "description": "Phase 1 shared Euler–Bernoulli deflection Capability. Delegates to Layer-A primitives. See docs/platform/MECHANICAL_BEAM_COLLAPSE.md. (calculation_version 1.0.0)"
}
