{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daily-dev/json-schema/daily-dev-def-21-schema.json",
  "title": "PostDetail",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daily-dev-openapi.json#/components/schemas/def-21",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "description": "Post type (article, share, etc.)"
    },
    "publishedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "commentsPermalink": {
      "type": "string",
      "format": "uri"
    },
    "source": {
      "$ref": "#/$defs/def-0"
    },
    "author": {
      "$ref": "#/$defs/def-17"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "readTime": {
      "type": [
        "integer",
        "null"
      ]
    },
    "numUpvotes": {
      "type": "integer"
    },
    "numComments": {
      "type": "integer"
    },
    "bookmarked": {
      "type": "boolean"
    },
    "content": {
      "type": [
        "string",
        "null"
      ],
      "description": "Content of the post (available for freeform and collection posts)"
    },
    "userState": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "vote": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "def-0": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      },
      "title": "Source"
    },
    "def-17": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "username": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "title": "AuthorWithId"
    }
  }
}