{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-support-issue-schema.json",
  "title": "SupportIssue",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-support-api-openapi.yml#/components/schemas/SupportIssue",
  "type": "object",
  "properties": {
    "id_site": {
      "type": "integer",
      "minimum": 0
    },
    "id_article": {
      "type": "integer",
      "minimum": 0
    },
    "description": {
      "type": "string"
    },
    "translated_headline": {
      "type": "string"
    },
    "original_headline": {
      "type": "string"
    },
    "publication_date": {
      "type": "integer"
    },
    "source": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "context_type": {
      "type": "string"
    },
    "context_name": {
      "type": "string"
    },
    "context_id": {
      "type": "integer",
      "minimum": 0
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "issue_type": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IssueTypeEnum"
      }
    }
  },
  "required": [
    "context_id",
    "context_name",
    "context_type",
    "country",
    "description",
    "id_article",
    "id_site",
    "issue_type",
    "original_headline",
    "publication_date",
    "source",
    "translated_headline"
  ],
  "$defs": {
    "IssueTypeEnum": {
      "enum": [
        1,
        2,
        3,
        4
      ],
      "type": "integer",
      "description": "* `1` - Factual mistake\n* `2` - Translation error\n* `3` - Metadata error\n* `4` - Other issue"
    }
  }
}