﻿{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://circuitgenome.com/schemas/cges-fmea-0.1.schema.json",
  "title": "CGES FMEA Extension 0.1",
  "description": "Validation schema for components[].analysis_modules.fmea payloads.",
  "type": "object",
  "properties": {
    "failure_mode": {
      "type": "string"
    },
    "effect": {
      "type": "string"
    },
    "severity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "occurrence": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "detection": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "rpn": {
      "type": "integer",
      "minimum": 1
    },
    "control": {
      "type": "string"
    },
    "action": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    }
  },
  "minProperties": 1,
  "additionalProperties": true
}
