{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openhandle/json-schema/openhandle-reddit-profile-schema.json",
  "title": "RedditProfile",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openhandle-reddit-api-openapi.yml#/components/schemas/RedditProfile",
  "additionalProperties": false,
  "properties": {
    "acceptsFollowers": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "avatar": {
      "anyOf": [
        {
          "$ref": "#/$defs/RedditImage"
        },
        {
          "type": "null"
        }
      ]
    },
    "banner": {
      "anyOf": [
        {
          "$ref": "#/$defs/RedditImage"
        },
        {
          "type": "null"
        }
      ]
    },
    "bio": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "format": "date-time",
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "displayHandle": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "displayName": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "handle": {
      "minLength": 1,
      "type": "string"
    },
    "id": {
      "minLength": 1,
      "type": "string"
    },
    "isEmployee": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "isModerator": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "isPremium": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "isSensitive": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "metrics": {
      "$ref": "#/$defs/RedditProfileMetrics"
    },
    "profileCommunity": {
      "anyOf": [
        {
          "$ref": "#/$defs/RedditProfileCommunity"
        },
        {
          "type": "null"
        }
      ]
    },
    "snoovatar": {
      "anyOf": [
        {
          "$ref": "#/$defs/RedditImage"
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "format": "uri",
      "minLength": 1,
      "type": "string"
    },
    "verification": {
      "$ref": "#/$defs/RedditVerification"
    },
    "visibility": {
      "$ref": "#/$defs/RedditProfileVisibility"
    }
  },
  "required": [
    "id",
    "handle",
    "displayHandle",
    "displayName",
    "bio",
    "url",
    "createdAt",
    "avatar",
    "snoovatar",
    "banner",
    "isPremium",
    "isEmployee",
    "isModerator",
    "acceptsFollowers",
    "isSensitive",
    "verification",
    "visibility",
    "metrics",
    "profileCommunity"
  ],
  "type": "object",
  "$defs": {
    "RedditImage": {
      "additionalProperties": false,
      "properties": {
        "height": {
          "type": [
            "integer",
            "null"
          ]
        },
        "label": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "format": "uri",
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/RedditImage"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "width": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "type",
        "url",
        "label",
        "width",
        "height",
        "variants"
      ],
      "type": "object"
    },
    "RedditKarma": {
      "additionalProperties": false,
      "properties": {
        "awardee": {
          "type": [
            "integer",
            "null"
          ]
        },
        "awarder": {
          "type": [
            "integer",
            "null"
          ]
        },
        "comments": {
          "type": [
            "integer",
            "null"
          ]
        },
        "posts": {
          "type": [
            "integer",
            "null"
          ]
        },
        "total": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "posts",
        "comments",
        "awardee",
        "awarder",
        "total"
      ],
      "type": "object"
    },
    "RedditProfileCommunity": {
      "additionalProperties": false,
      "properties": {
        "communityIcon": {
          "anyOf": [
            {
              "$ref": "#/$defs/RedditImage"
            },
            {
              "type": "null"
            }
          ]
        },
        "displayHandle": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "handle": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "icon": {
          "anyOf": [
            {
              "$ref": "#/$defs/RedditImage"
            },
            {
              "type": "null"
            }
          ]
        },
        "primaryColor": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "minLength": 1,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "handle",
        "type",
        "displayHandle",
        "icon",
        "communityIcon",
        "primaryColor"
      ],
      "type": "object"
    },
    "RedditProfileMetrics": {
      "additionalProperties": false,
      "properties": {
        "followers": {
          "type": [
            "integer",
            "null"
          ]
        },
        "karma": {
          "$ref": "#/$defs/RedditKarma"
        }
      },
      "required": [
        "followers",
        "karma"
      ],
      "type": "object"
    },
    "RedditProfileVisibility": {
      "additionalProperties": false,
      "properties": {
        "hideFromRobots": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "hideFromRobots"
      ],
      "type": "object"
    },
    "RedditVerification": {
      "additionalProperties": false,
      "properties": {
        "hasVerifiedEmail": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "reportedVerified": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "reportedVerified",
        "hasVerifiedEmail"
      ],
      "type": "object"
    }
  }
}