{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loreboard-ink/json-schema/loreboard-ink-public-resource-schema.json",
  "title": "PublicResource",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loreboard-ink-openapi.json#/components/schemas/PublicResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^lb_[a-f0-9]{24}$"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "primaryUrl": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "resourceType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "tool",
            "community",
            "creator",
            "shopping",
            "reference"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "category": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "deck_builder",
            "collection_tracker",
            "simulator_playtest",
            "meta_tournament",
            "price_market",
            "gameplay_aid",
            "card_database",
            "developer_api",
            "creator_tool",
            "spreadsheet_template",
            "event_store",
            "community_discord",
            "creator_youtube",
            "shopping_marketplace",
            "shopping_product",
            "reference_site",
            "podcast_newsletter"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "pricing": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "free",
            "freemium",
            "paid",
            "open_source",
            "unknown"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "platforms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "web",
              "ios",
              "android",
              "mobile",
              "pwa",
              "desktop",
              "api",
              "spreadsheet",
              "discord"
            ]
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "additionalProperties": false
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bestFor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limitations": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "audiences": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "beginner",
              "casual_player",
              "competitive_player",
              "collector",
              "creator",
              "developer",
              "retailer",
              "tournament_organizer",
              "community_member"
            ]
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "additionalProperties": false
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "deck_building",
              "deck_analysis",
              "deck_import_export",
              "collection_tracking",
              "card_database",
              "card_scanning",
              "price_tracking",
              "market_data",
              "tournament_discovery",
              "tournament_management",
              "meta_analysis",
              "matchup_analysis",
              "gameplay_simulation",
              "remote_play",
              "proxy_generation",
              "probability_calculation",
              "reference_content",
              "news_content",
              "video_content",
              "podcast_content",
              "community_chat",
              "developer_api",
              "data_export",
              "creator_tools",
              "gameplay_aids",
              "shopping"
            ]
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ],
        "additionalProperties": false
      }
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ownership": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "official_publisher",
            "maintainer_operated",
            "community_operated",
            "third_party",
            "unknown"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "updateFrequency": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "realtime",
            "daily",
            "weekly",
            "monthly",
            "irregular",
            "unknown"
          ]
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "access": {
      "type": "object",
      "properties": {
        "accountRequired": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "paidSubscriptionRequired": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "membershipRequired": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "accountRequired",
        "paidSubscriptionRequired",
        "membershipRequired"
      ],
      "additionalProperties": false
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "primary",
              "source",
              "verification",
              "repository",
              "documentation",
              "api",
              "ios_app",
              "android_app",
              "social",
              "community",
              "feed"
            ]
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "type",
          "label",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "relationships": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "part_of",
              "related_to",
              "replaces"
            ]
          },
          "resourceId": {
            "type": "string",
            "pattern": "^lb_[a-f0-9]{24}$"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "type",
          "resourceId",
          "slug",
          "name",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "summary",
              "pricing",
              "platforms",
              "capabilities",
              "access",
              "audience",
              "language_region",
              "ownership",
              "availability",
              "other"
            ]
          },
          "claim": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          },
          "observedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "field",
          "claim",
          "sourceUrl",
          "observedAt"
        ],
        "additionalProperties": false
      }
    },
    "maintainer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "verification": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "unverified",
            "verified",
            "needs_recheck",
            "stale",
            "shutdown"
          ]
        },
        "sourceUrl": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastVerifiedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "status",
        "sourceUrl",
        "lastVerifiedAt"
      ],
      "additionalProperties": false
    },
    "affiliate": {
      "type": "object",
      "properties": {
        "isAffiliate": {
          "type": "boolean"
        },
        "disclosure": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "isAffiliate",
        "disclosure"
      ],
      "additionalProperties": false
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
    },
    "lastVerifiedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "slug",
    "url",
    "primaryUrl",
    "name",
    "summary",
    "resourceType",
    "category",
    "pricing",
    "platforms",
    "tags",
    "bestFor",
    "limitations",
    "audiences",
    "capabilities",
    "languages",
    "regions",
    "ownership",
    "updateFrequency",
    "access",
    "links",
    "relationships",
    "evidence",
    "maintainer",
    "verification",
    "affiliate",
    "createdAt",
    "updatedAt",
    "lastVerifiedAt"
  ],
  "additionalProperties": false
}