{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sasco/json-schema/sasco-news-add-edit-dto-schema.json",
  "title": "NewsAddEditDto",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sasco-openapi.json#/components/schemas/NewsAddEditDto",
  "required": [
    "contentAr",
    "contentEn",
    "newsCategoryId",
    "newsDate",
    "photoAttachmentArId",
    "photoAttachmentEnId",
    "thumbnailPhotoAttachmentArId",
    "thumbnailPhotoAttachmentEnId",
    "titleAr",
    "titleEn"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "isEditable": {
      "type": "boolean"
    },
    "isSubmitted": {
      "type": "boolean"
    },
    "publishStatus": {
      "type": "integer",
      "format": "int32"
    },
    "firstApproval": {
      "type": "integer",
      "format": "int32"
    },
    "secondApproval": {
      "type": "integer",
      "format": "int32"
    },
    "thirdApproval": {
      "type": "integer",
      "format": "int32"
    },
    "requesterId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "wfPageLevel": {
      "type": "integer",
      "format": "int32"
    },
    "publishVersionId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "rejectReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentVersion": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "publishDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "rowVersion": {
      "type": [
        "string",
        "null"
      ],
      "format": "byte"
    },
    "historyList": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RequestHistoryDto"
      }
    },
    "titleAr": {
      "maxLength": 500,
      "type": "string"
    },
    "titleEn": {
      "maxLength": 500,
      "type": "string"
    },
    "contentAr": {
      "type": "string"
    },
    "contentEn": {
      "type": "string"
    },
    "photoAttachmentArId": {
      "type": "integer",
      "format": "int32"
    },
    "thumbnailPhotoAttachmentArId": {
      "type": "integer",
      "format": "int32"
    },
    "photoAttachmentEnId": {
      "type": "integer",
      "format": "int32"
    },
    "thumbnailPhotoAttachmentEnId": {
      "type": "integer",
      "format": "int32"
    },
    "newsCategoryId": {
      "type": "integer",
      "format": "int32"
    },
    "newsDate": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "RequestHistoryDto": {
      "type": "object",
      "properties": {
        "userName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullName": {
          "type": [
            "string",
            "null"
          ]
        },
        "roleNameAr": {
          "type": [
            "string",
            "null"
          ]
        },
        "roleNameEn": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "actionName": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectReason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}