{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-certification-response-schema.json",
  "title": "CertificationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-certifications-api-openapi.yml#/components/schemas/CertificationResponse",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "format": "string"
    },
    "category": {
      "type": "string",
      "format": "string"
    },
    "certification_type_id": {
      "type": "integer",
      "format": "int32"
    },
    "description": {
      "type": "string",
      "format": "string"
    },
    "holders": {
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "type": "string",
      "enum": [
        "Active",
        "Inactive"
      ]
    },
    "staff_audience": {
      "type": "string",
      "enum": [
        "locations",
        "departments",
        "roles",
        "all"
      ]
    },
    "contractor_audience": {
      "type": "string",
      "enum": [
        "locations",
        "groups",
        "roles",
        "all"
      ]
    },
    "staff_departments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    },
    "staff_locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    },
    "staff_roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    },
    "sp_groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    },
    "sp_locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    },
    "sp_roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    }
  },
  "type": "object",
  "$defs": {
    "BasicIdNamePair": {
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "format": "string"
        }
      },
      "type": "object"
    }
  }
}