{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-trivia-api-com/json-schema/the-trivia-api-com-metadata-response-schema.json",
  "title": "MetadataResponse",
  "description": "Metadata on the questions that match a given query",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-trivia-api-com-openapi.yml#/components/schemas/MetadataResponse",
  "type": "object",
  "properties": {
    "byCategory": {
      "description": "Number of matching questions per category",
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "byDifficulty": {
      "description": "Number of matching questions per difficulty",
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "byState": {
      "description": "Number of matching questions per state",
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "byType": {
      "description": "Number of matching questions per question type",
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "lastCreated": {
      "description": "Timestamp of the most recently submitted matching question",
      "type": "string",
      "format": "date-time"
    },
    "lastReviewed": {
      "description": "Timestamp of the most recently reviewed matching question, null if none have been reviewed",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "byCategory",
    "byDifficulty",
    "byState",
    "byType",
    "lastCreated",
    "lastReviewed"
  ]
}