{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pitchbook/json-schema/pitchbook-credit-news-dto-schema.json",
  "title": "CreditNewsDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pitchbook-credit-analysis-api-openapi.yml#/components/schemas/CreditNewsDto",
  "type": "object",
  "properties": {
    "articleId": {
      "type": "integer",
      "format": "int32"
    },
    "title": {
      "type": "string"
    },
    "authors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuthorDto"
      }
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "publishDate": {
      "type": "string",
      "format": "date-time"
    },
    "assetClasses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issuer": {
      "$ref": "#/$defs/NewsBusinessEntityDto"
    },
    "lender": {
      "$ref": "#/$defs/NewsBusinessEntityDto"
    },
    "sponsor": {
      "$ref": "#/$defs/NewsBusinessEntityDto"
    },
    "articleBody": {
      "type": "string"
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttachmentDto"
      }
    },
    "deal": {
      "$ref": "#/$defs/DealDto"
    }
  },
  "$defs": {
    "AttachmentDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "AuthorDto": {
      "type": "object",
      "properties": {
        "authorName": {
          "type": "string"
        }
      }
    },
    "DealDto": {
      "type": "object",
      "properties": {
        "dealId": {
          "type": "string"
        }
      }
    },
    "NewsBusinessEntityDto": {
      "type": "object",
      "properties": {
        "pbId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}