{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/akamai-api-security/refs/heads/main/json-structure/api-security-validation-structure.json",
  "name": "validation",
  "description": "Contains feedback on validation.",
  "type": "object",
  "properties": {
    "detail": {
      "description": "The explanation of the error message.",
      "type": "string"
    },
    "fieldName": {
      "description": "The name of the field causing the validation problem.",
      "type": "string"
    },
    "jsonReference": {
      "description": "The JSON reference to the field in the resource.",
      "type": "string"
    },
    "name": {
      "description": "The title for the error.",
      "example": "Not Found",
      "type": "string"
    },
    "type": {
      "description": "The URL for the error type.",
      "example": "/appsec/problem-types/INCOMPATIBLE-FIELD",
      "type": "string"
    }
  },
  "required": [
    "title",
    "type"
  ],
  "additionalProperties": false
}