{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ravenstrike.local/schemas/module_2_output.schema.json",
  "allOf": [{ "$ref": "module_common.schema.json" }],
  "type": "object",
  "unevaluatedProperties": false,
  "properties": {
    "sigma_rule": { "type": "string", "minLength": 1 },
    "sigma_quality": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "has_fp_filter": { "type": "boolean", "const": true },
        "has_mitre_tags": { "type": "boolean", "const": true },
        "condition_safe": { "type": "boolean", "const": true },
        "fp_rationale": { "type": "string", "minLength": 1 }
      },
      "required": ["has_fp_filter", "has_mitre_tags", "condition_safe", "fp_rationale"]
    },
    "platform_query": { "type": "string", "minLength": 1 }
  },
  "required": ["sigma_rule", "sigma_quality", "platform_query"]
}
