{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-subreddit-rule-schema.json",
  "title": "SubredditRule",
  "description": "Represents a rule defined for a subreddit.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-subreddits-api-openapi.yml#/components/schemas/SubredditRule",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "description": "The rule kind (link, comment, or all).",
      "enum": [
        "link",
        "comment",
        "all"
      ]
    },
    "short_name": {
      "type": "string",
      "description": "A short name for the rule."
    },
    "description": {
      "type": "string",
      "description": "The full description of the rule (markdown)."
    },
    "violation_reason": {
      "type": "string",
      "description": "The reason shown when content is reported for this rule."
    },
    "created_utc": {
      "type": "number",
      "format": "double",
      "description": "The Unix timestamp of when the rule was created."
    },
    "priority": {
      "type": "integer",
      "description": "The display priority of the rule."
    }
  }
}