{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presscart-com/json-schema/presscart-com-article-schema.json",
  "title": "Article",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presscart-com-openapi.json#/components/schemas/Article",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "story_angle": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "key_points": {
      "type": [
        "string",
        "null"
      ]
    },
    "word_count": {
      "type": [
        "string",
        "null"
      ]
    },
    "target_audience": {
      "type": [
        "string",
        "null"
      ]
    },
    "live_url": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1
    },
    "brief_google_doc_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "draft_google_doc_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "publish_status": {
      "type": "string",
      "enum": [
        "UNPUBLISH",
        "PUBLISHING",
        "PUBLISHED",
        "PENDING"
      ]
    },
    "campaign_id": {
      "type": "string",
      "format": "uuid"
    },
    "writer_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "support_agent_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "goal_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "priority_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "content_status_id": {
      "type": "string",
      "format": "uuid"
    },
    "order_item_id": {
      "type": "string",
      "format": "uuid"
    },
    "draft_count": {
      "type": [
        "number",
        "null"
      ]
    },
    "published_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "approval_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "estimated_publish_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "approved_brief_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "estimated_brief_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "approved_draft_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "estimated_draft_date": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "publisher_notified_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "last_compliance_check_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "last_live_article_check_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "created_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "updated_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": [
            "string",
            "null"
          ]
        },
        {
          "type": "string"
        },
        {
          "nullable": true
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "story_angle",
    "description",
    "key_points",
    "word_count",
    "target_audience",
    "live_url",
    "brief_google_doc_url",
    "draft_google_doc_url",
    "notes",
    "publish_status",
    "campaign_id",
    "writer_id",
    "support_agent_id",
    "goal_id",
    "priority_id",
    "content_status_id",
    "order_item_id",
    "draft_count",
    "published_date",
    "approval_date",
    "estimated_publish_date",
    "approved_brief_date",
    "estimated_brief_date",
    "approved_draft_date",
    "estimated_draft_date",
    "publisher_notified_at",
    "last_compliance_check_id",
    "last_live_article_check_id",
    "created_at",
    "updated_at",
    "deleted_at"
  ]
}