Zally · Schema

Violation

Violation Object

API DesignAPI LintingAPI QualityOpen SourceOpenAPIZalando

Properties

Name Type Description
title string Violation title
description string Violation text
violation_type object
rule_link string Violated rule URL
paths array Violated paths
pointer string JsonPointer to the violated path in the specification
start_line integer The line starting the violated location, if known
end_line integer The line ending the violated location, if known
View JSON Schema on GitHub

JSON Schema

zally-api-violation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Violation",
  "description": "Violation Object",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zally/refs/heads/main/json-schema/zally-api-violation-schema.json",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Violation title",
      "example": "Example Name"
    },
    "description": {
      "type": "string",
      "description": "Violation text",
      "example": "Example description for this resource."
    },
    "violation_type": {
      "$ref": "#/components/schemas/RuleType"
    },
    "rule_link": {
      "type": "string",
      "description": "Violated rule URL",
      "example": "https://example.com/path/abc123"
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Violated paths",
      "example": [
        "/var/example/abc.log"
      ]
    },
    "pointer": {
      "type": "string",
      "description": "JsonPointer to the violated path in the specification",
      "example": "example-value"
    },
    "start_line": {
      "type": "integer",
      "format": "int32",
      "example": 1,
      "description": "The line starting the violated location, if known"
    },
    "end_line": {
      "type": "integer",
      "format": "int32",
      "example": 5,
      "description": "The line ending the violated location, if known"
    }
  },
  "required": [
    "title",
    "description",
    "violation_type",
    "paths"
  ]
}