GitHub · Schema

validation-error

Validation Error

CodePipelinesPlatformSoftware DevelopmentSource ControlT1

Properties

Name Type Description
message string
documentation_url string
errors array
View JSON Schema on GitHub

JSON Schema

github-repo-tags-api-validation-error-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-schema/github-repo-tags-api-validation-error-schema.json",
  "title": "validation-error",
  "description": "Validation Error",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "example": "Example body text"
    },
    "documentation_url": {
      "type": "string",
      "example": "https://api.github.com/repos/octocat/Hello-World"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "resource": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "index": {
            "type": "integer"
          },
          "value": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        }
      }
    }
  },
  "required": [
    "message",
    "documentation_url"
  ]
}