{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/physics.optics.snell.input.json",
  "title": "Snell's Law Calculator — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "theta2",
        "theta1",
        "n2",
        "critical"
      ]
    },
    "n1": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "n2": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "theta1_deg": {
      "type": "number"
    },
    "theta2_deg": {
      "type": "number"
    }
  },
  "required": [
    "mode"
  ],
  "description": "n1 sinθ1 = n2 sinθ2 plus critical angle. (calculation_version 1.0.0)"
}
