{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/electrical.awg_to_mm.output.json",
  "title": "AWG to mm / mm² — success output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "capability_id",
    "engine",
    "inputs",
    "result",
    "result_detail",
    "calculation_version",
    "verification"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Requested tool id"
    },
    "status": {
      "const": "success"
    },
    "capability_id": {
      "const": "electrical.awg_to_mm"
    },
    "tool": {
      "type": "string",
      "description": "Requested tool id"
    },
    "engine": {
      "type": "string"
    },
    "inputs": {
      "type": "object",
      "description": "Normalized calculation inputs (aliases resolved)"
    },
    "result": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "gauge",
        "gauge_n",
        "geometry",
        "electrical"
      ],
      "properties": {
        "value": {
          "type": "number",
          "description": "Primary scalar: diameter_mm when field=mm, area_mm2 when field=mm2"
        },
        "unit": {
          "type": "string",
          "description": "mm or mm² matching field"
        },
        "gauge": {
          "type": "string",
          "description": "Canonical label (12, 1/0, 4/0)"
        },
        "gauge_n": {
          "type": "number",
          "description": "Geometric index (4/0 = −3, 1/0 = 0)"
        },
        "geometry": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "diameter_mm",
            "area_mm2",
            "area_kcmil",
            "basis",
            "standard",
            "edition",
            "edition_kind",
            "assurance",
            "range",
            "formula",
            "standard_nominal"
          ],
          "properties": {
            "diameter_mm": {
              "type": "number",
              "description": "Primary formula diameter (unrounded geometric progression)"
            },
            "area_mm2": {
              "type": "number",
              "description": "Primary formula round area πd²/4"
            },
            "area_kcmil": {
              "type": "number"
            },
            "basis": {
              "type": "string",
              "const": "ASTM B258-18(2026) geometric progression (unrounded)"
            },
            "standard": {
              "type": "string",
              "const": "ASTM B258",
              "description": "Geometry standard family"
            },
            "edition": {
              "type": "string",
              "const": "18(2026)",
              "description": "Pinned ASTM edition; 2026 is a reapproval of B258-18, not a technical revision"
            },
            "edition_kind": {
              "type": "string",
              "const": "reapproval"
            },
            "assurance": {
              "type": "string",
              "enum": [
                "formula_derived",
                "formula_interpolation",
                "formula_extrapolation"
              ],
              "description": "formula_derived for integer 4/0–56 (primary is unrounded formula, not Table 1); interpolation/extrapolation are not standard values"
            },
            "range": {
              "type": "string",
              "enum": [
                "standard_range",
                "nonstandard_gauge",
                "formula_extrapolation"
              ]
            },
            "formula": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "diameter_mm",
                "area_mm2",
                "area_kcmil",
                "assurance"
              ],
              "description": "Unrounded geometric progression track (same as top-level diameter/area)",
              "properties": {
                "diameter_mm": {
                  "type": "number"
                },
                "area_mm2": {
                  "type": "number"
                },
                "area_kcmil": {
                  "type": "number"
                },
                "assurance": {
                  "type": "string",
                  "enum": [
                    "formula_derived",
                    "formula_interpolation",
                    "formula_extrapolation"
                  ]
                }
              }
            },
            "standard_nominal": {
              "description": "ASTM B258 Table 1 SI/inch-pound standard nominals when n is an integer 4/0–56; otherwise null",
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "diameter_mm",
                    "area_mm2",
                    "diameter_mil",
                    "area_cmil",
                    "basis",
                    "dataset_id",
                    "table",
                    "assurance"
                  ],
                  "properties": {
                    "diameter_mm": {
                      "type": "number"
                    },
                    "area_mm2": {
                      "type": "number"
                    },
                    "diameter_mil": {
                      "type": "number"
                    },
                    "area_cmil": {
                      "type": "number"
                    },
                    "basis": {
                      "type": "string",
                      "const": "ASTM B258-18(2026) Table 1"
                    },
                    "dataset_id": {
                      "type": "string",
                      "const": "astm_b258_table1_si_v1"
                    },
                    "table": {
                      "type": "string",
                      "const": "1"
                    },
                    "assurance": {
                      "type": "string",
                      "const": "standard_nominal"
                    }
                  }
                }
              ]
            }
          }
        },
        "electrical": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "material",
            "temperature_C",
            "resistance_ohm_per_km",
            "assurance"
          ],
          "properties": {
            "material": {
              "type": "string"
            },
            "temperature_C": {
              "type": "number"
            },
            "resistance_ohm_per_km": {
              "type": "number"
            },
            "resistance_ohm_per_1000_ft": {
              "type": "number"
            },
            "resistivity_ohm_m": {
              "type": "number"
            },
            "assurance": {
              "type": "string",
              "enum": [
                "material_model"
              ]
            }
          }
        },
        "references": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "ampacity": {
              "description": "Educational NFPA 70–style copper thermal ampacity (table-like 310.16, edition not pinned), or null when not tabulated. Not jurisdiction-usable.",
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "60C_A",
                    "75C_A",
                    "90C_A",
                    "assurance",
                    "source_family",
                    "table_like",
                    "edition",
                    "code_edition_not_pinned",
                    "educational_reference",
                    "jurisdiction_usable",
                    "material",
                    "condition"
                  ],
                  "properties": {
                    "60C_A": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "75C_A": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "90C_A": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "basis": {
                      "type": "string"
                    },
                    "assurance": {
                      "const": "code_context_required"
                    },
                    "code_context_required": {
                      "type": "boolean"
                    },
                    "educational_reference": {
                      "type": "boolean",
                      "const": true
                    },
                    "code_edition_not_pinned": {
                      "type": "boolean",
                      "const": true
                    },
                    "jurisdiction_usable": {
                      "type": "boolean",
                      "const": false
                    },
                    "source_family": {
                      "type": "string",
                      "const": "NFPA_70"
                    },
                    "table_like": {
                      "type": "string",
                      "const": "310.16",
                      "description": "Family resemblance only — not a citation of an adopted Table 310.16 edition"
                    },
                    "edition": {
                      "type": "null",
                      "description": "Intentionally unpinned; this page does not cite an NFPA 70 edition"
                    },
                    "material": {
                      "type": "string",
                      "const": "copper"
                    },
                    "condition": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "current_carrying_conductors",
                        "ambient_correction",
                        "bundling_adjustment"
                      ],
                      "properties": {
                        "current_carrying_conductors": {
                          "type": "string",
                          "const": "not_more_than_three"
                        },
                        "ambient_correction": {
                          "type": "boolean",
                          "const": false
                        },
                        "bundling_adjustment": {
                          "type": "boolean",
                          "const": false
                        },
                        "wiring_method": {
                          "type": "string"
                        },
                        "termination_temperature": {
                          "type": "string"
                        }
                      }
                    },
                    "note": {
                      "type": "string"
                    }
                  }
                }
              ]
            }
          }
        },
        "warnings": {
          "type": "array",
          "description": "AWG_NONSTANDARD_GAUGE for non-integer n in 4/0…56; AWG_OUTSIDE_STANDARD_RANGE when n is outside that span",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "severity": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "suggestion": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "result_detail": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "unit",
        "formatted"
      ],
      "properties": {
        "value": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "value",
            "gauge",
            "gauge_n",
            "geometry",
            "electrical"
          ],
          "properties": {
            "value": {
              "type": "number",
              "description": "Primary scalar: diameter_mm when field=mm, area_mm2 when field=mm2"
            },
            "unit": {
              "type": "string",
              "description": "mm or mm² matching field"
            },
            "gauge": {
              "type": "string",
              "description": "Canonical label (12, 1/0, 4/0)"
            },
            "gauge_n": {
              "type": "number",
              "description": "Geometric index (4/0 = −3, 1/0 = 0)"
            },
            "geometry": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "diameter_mm",
                "area_mm2",
                "area_kcmil",
                "basis",
                "standard",
                "edition",
                "edition_kind",
                "assurance",
                "range",
                "formula",
                "standard_nominal"
              ],
              "properties": {
                "diameter_mm": {
                  "type": "number",
                  "description": "Primary formula diameter (unrounded geometric progression)"
                },
                "area_mm2": {
                  "type": "number",
                  "description": "Primary formula round area πd²/4"
                },
                "area_kcmil": {
                  "type": "number"
                },
                "basis": {
                  "type": "string",
                  "const": "ASTM B258-18(2026) geometric progression (unrounded)"
                },
                "standard": {
                  "type": "string",
                  "const": "ASTM B258",
                  "description": "Geometry standard family"
                },
                "edition": {
                  "type": "string",
                  "const": "18(2026)",
                  "description": "Pinned ASTM edition; 2026 is a reapproval of B258-18, not a technical revision"
                },
                "edition_kind": {
                  "type": "string",
                  "const": "reapproval"
                },
                "assurance": {
                  "type": "string",
                  "enum": [
                    "formula_derived",
                    "formula_interpolation",
                    "formula_extrapolation"
                  ],
                  "description": "formula_derived for integer 4/0–56 (primary is unrounded formula, not Table 1); interpolation/extrapolation are not standard values"
                },
                "range": {
                  "type": "string",
                  "enum": [
                    "standard_range",
                    "nonstandard_gauge",
                    "formula_extrapolation"
                  ]
                },
                "formula": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "diameter_mm",
                    "area_mm2",
                    "area_kcmil",
                    "assurance"
                  ],
                  "description": "Unrounded geometric progression track (same as top-level diameter/area)",
                  "properties": {
                    "diameter_mm": {
                      "type": "number"
                    },
                    "area_mm2": {
                      "type": "number"
                    },
                    "area_kcmil": {
                      "type": "number"
                    },
                    "assurance": {
                      "type": "string",
                      "enum": [
                        "formula_derived",
                        "formula_interpolation",
                        "formula_extrapolation"
                      ]
                    }
                  }
                },
                "standard_nominal": {
                  "description": "ASTM B258 Table 1 SI/inch-pound standard nominals when n is an integer 4/0–56; otherwise null",
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "diameter_mm",
                        "area_mm2",
                        "diameter_mil",
                        "area_cmil",
                        "basis",
                        "dataset_id",
                        "table",
                        "assurance"
                      ],
                      "properties": {
                        "diameter_mm": {
                          "type": "number"
                        },
                        "area_mm2": {
                          "type": "number"
                        },
                        "diameter_mil": {
                          "type": "number"
                        },
                        "area_cmil": {
                          "type": "number"
                        },
                        "basis": {
                          "type": "string",
                          "const": "ASTM B258-18(2026) Table 1"
                        },
                        "dataset_id": {
                          "type": "string",
                          "const": "astm_b258_table1_si_v1"
                        },
                        "table": {
                          "type": "string",
                          "const": "1"
                        },
                        "assurance": {
                          "type": "string",
                          "const": "standard_nominal"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "electrical": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "material",
                "temperature_C",
                "resistance_ohm_per_km",
                "assurance"
              ],
              "properties": {
                "material": {
                  "type": "string"
                },
                "temperature_C": {
                  "type": "number"
                },
                "resistance_ohm_per_km": {
                  "type": "number"
                },
                "resistance_ohm_per_1000_ft": {
                  "type": "number"
                },
                "resistivity_ohm_m": {
                  "type": "number"
                },
                "assurance": {
                  "type": "string",
                  "enum": [
                    "material_model"
                  ]
                }
              }
            },
            "references": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "ampacity": {
                  "description": "Educational NFPA 70–style copper thermal ampacity (table-like 310.16, edition not pinned), or null when not tabulated. Not jurisdiction-usable.",
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "60C_A",
                        "75C_A",
                        "90C_A",
                        "assurance",
                        "source_family",
                        "table_like",
                        "edition",
                        "code_edition_not_pinned",
                        "educational_reference",
                        "jurisdiction_usable",
                        "material",
                        "condition"
                      ],
                      "properties": {
                        "60C_A": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "75C_A": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "90C_A": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "basis": {
                          "type": "string"
                        },
                        "assurance": {
                          "const": "code_context_required"
                        },
                        "code_context_required": {
                          "type": "boolean"
                        },
                        "educational_reference": {
                          "type": "boolean",
                          "const": true
                        },
                        "code_edition_not_pinned": {
                          "type": "boolean",
                          "const": true
                        },
                        "jurisdiction_usable": {
                          "type": "boolean",
                          "const": false
                        },
                        "source_family": {
                          "type": "string",
                          "const": "NFPA_70"
                        },
                        "table_like": {
                          "type": "string",
                          "const": "310.16",
                          "description": "Family resemblance only — not a citation of an adopted Table 310.16 edition"
                        },
                        "edition": {
                          "type": "null",
                          "description": "Intentionally unpinned; this page does not cite an NFPA 70 edition"
                        },
                        "material": {
                          "type": "string",
                          "const": "copper"
                        },
                        "condition": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "current_carrying_conductors",
                            "ambient_correction",
                            "bundling_adjustment"
                          ],
                          "properties": {
                            "current_carrying_conductors": {
                              "type": "string",
                              "const": "not_more_than_three"
                            },
                            "ambient_correction": {
                              "type": "boolean",
                              "const": false
                            },
                            "bundling_adjustment": {
                              "type": "boolean",
                              "const": false
                            },
                            "wiring_method": {
                              "type": "string"
                            },
                            "termination_temperature": {
                              "type": "string"
                            }
                          }
                        },
                        "note": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            },
            "warnings": {
              "type": "array",
              "description": "AWG_NONSTANDARD_GAUGE for non-integer n in 4/0…56; AWG_OUTSIDE_STANDARD_RANGE when n is outside that span",
              "items": {
                "type": "object",
                "additionalProperties": true,
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "severity": {
                    "type": "string"
                  },
                  "detail": {
                    "type": "string"
                  },
                  "suggestion": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "formatted": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "formula": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "expression": {
              "type": "string"
            },
            "label": {
              "type": "string"
            }
          }
        }
      ]
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "suggestion": {
            "type": "string"
          }
        }
      }
    },
    "verification": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "tier",
        "engine_tested",
        "expert_reviewed",
        "source_checked",
        "reviewed_by",
        "reviewer_role",
        "last_reviewed"
      ],
      "properties": {
        "tier": {
          "type": "string",
          "enum": [
            "candidate",
            "engine_tested",
            "internally_reviewed",
            "expert_verified"
          ]
        },
        "engine_tested": {
          "type": "boolean"
        },
        "expert_reviewed": {
          "type": "boolean"
        },
        "internally_reviewed": {
          "type": "boolean"
        },
        "review_kind": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_checked": {
          "type": "boolean"
        },
        "reviewed_by": {
          "type": [
            "string",
            "null"
          ]
        },
        "reviewer_role": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_reviewed": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "tier": {
                "const": "expert_verified"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "expert_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              },
              "reviewed_by": {
                "type": "string",
                "minLength": 1
              },
              "reviewer_role": {
                "type": "string",
                "minLength": 1
              },
              "last_reviewed": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "internally_reviewed"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              },
              "internally_reviewed": {
                "const": true
              },
              "source_checked": {
                "const": true
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "tier": {
                "const": "engine_tested"
              }
            },
            "required": [
              "tier"
            ]
          },
          "then": {
            "properties": {
              "engine_tested": {
                "const": true
              }
            }
          }
        }
      ]
    },
    "calculation_version": {
      "type": "string",
      "const": "1.5.0"
    },
    "api_version": {
      "type": "string"
    },
    "api_contract_version": {
      "type": "string"
    },
    "spec_version": {
      "type": "string"
    },
    "page": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical calculator page URL"
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "schema_input": {
          "type": "string",
          "format": "uri"
        },
        "schema_output": {
          "type": "string",
          "format": "uri"
        },
        "evidence": {
          "type": "string",
          "format": "uri"
        },
        "openapi": {
          "type": "string",
          "format": "uri"
        },
        "capabilities": {
          "type": "string",
          "format": "uri"
        },
        "mcp": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
