{
  "tool_id": "structured_schema_validator_finance",
  "slug": "structured-schema-validator-finance",
  "path": "/structured-schema-validator-finance/",
  "mode": "client_side",
  "usage": "Client-side calculator. Open https://aifinhub.io/structured-schema-validator-finance/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifinhub.io/engines/structured-schema-validator-finance.js \u2014 call compute(input) with the JSON shape below.",
  "methodology": "https://aifinhub.io/methodology/structured-schema-validator-finance/",
  "sample_input": {
    "tool": "structured_schema_validator_finance",
    "schema_id": "trade_decision",
    "json": {
      "ticker": "AAPL",
      "side": "long",
      "size_shares": 250,
      "rationale": "Earnings beat confirmed the margin-expansion thesis; sized for 1% portfolio risk against the declared stop.",
      "stop_loss": 178.5,
      "take_profit": 212
    }
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "schema_id": {
        "type": "string"
      }
    },
    "required": [
      "tool",
      "schema_id"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "pass": {
        "type": "boolean"
      },
      "fields": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "ok",
                "missing",
                "type_mismatch",
                "enum_mismatch",
                "out_of_range",
                "too_short"
              ]
            },
            "message": {
              "type": "string"
            }
          }
        }
      },
      "sanityFlags": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "parseError": {
        "type": "string"
      }
    }
  }
}
