{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openhandle/json-schema/openhandle-reddit-trophy-schema.json",
  "title": "RedditTrophy",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openhandle-reddit-api-openapi.yml#/components/schemas/RedditTrophy",
  "additionalProperties": false,
  "properties": {
    "awardId": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "grantedAt": {
      "format": "date-time",
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "icon": {
      "anyOf": [
        {
          "$ref": "#/$defs/RedditImage"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "url": {
      "format": "uri",
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "awardId",
    "name",
    "description",
    "url",
    "grantedAt",
    "icon"
  ],
  "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"
    }
  }
}