{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatterapi-com/json-schema/chatterapi-com-subreddit-schema.json",
  "title": "Subreddit",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatterapi-com-openapi.json#/components/schemas/Subreddit",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "subscribers": {
      "type": [
        "number",
        "null"
      ]
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 8601 UTC timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "nsfw": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "url": {
      "type": "string"
    },
    "rules": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "appliesTo": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "title",
              "description",
              "appliesTo"
            ],
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "moderators": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "since": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "ISO 8601 UTC timestamp"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "since"
            ],
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "posting": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "submissionType": {
              "type": [
                "string",
                "null"
              ]
            },
            "restrictPosting": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "linkFlairEnabled": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "allowImages": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "allowVideos": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "allowPolls": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "allowGalleries": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "submitText": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "submissionType",
            "restrictPosting",
            "linkFlairEnabled",
            "allowImages",
            "allowVideos",
            "allowPolls",
            "allowGalleries",
            "submitText"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "name",
    "title",
    "description",
    "subscribers",
    "createdAt",
    "nsfw",
    "url",
    "rules",
    "moderators",
    "posting"
  ],
  "additionalProperties": false
}