{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apidirect-io/json-schema/apidirect-io-reddit-subreddit-posts-response-schema.json",
  "title": "RedditSubredditPostsResponse",
  "description": "Inferred from a live response. Any field can be null or absent, and new fields may be added at any time.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apidirect-io-reddit-api-openapi.yml#/components/schemas/RedditSubredditPostsResponse",
  "type": "object",
  "properties": {
    "posts": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "post_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "type": [
              "string",
              "null"
            ]
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "author_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "type": [
              "string",
              "null"
            ]
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ]
          },
          "subreddit": {
            "type": [
              "string",
              "null"
            ]
          },
          "upvotes": {
            "type": [
              "number",
              "null"
            ]
          },
          "upvote_ratio": {
            "type": [
              "number",
              "null"
            ]
          },
          "comments": {
            "type": [
              "number",
              "null"
            ]
          },
          "crossposts": {
            "type": [
              "number",
              "null"
            ]
          },
          "flair": {
            "type": [
              "string",
              "null"
            ]
          },
          "link_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "thumbnail": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_video": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "nsfw": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "spoiler": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "locked": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "stickied": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "video_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "video_hls_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "images": {
            "type": [
              "array",
              "null"
            ],
            "items": {}
          }
        }
      }
    },
    "subreddit": {
      "type": [
        "string",
        "null"
      ]
    },
    "sort_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "pages": {
      "type": [
        "number",
        "null"
      ]
    },
    "count": {
      "type": [
        "number",
        "null"
      ]
    }
  }
}