{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/shareworks/main/json-schema/ErrorWithCode.json",
  "title": "Validation Error",
  "required": [
    "code",
    "message"
  ],
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Message describing the error"
    },
    "code": {
      "type": "integer",
      "description": "Unique code for the validation error",
      "format": "int32"
    }
  }
}