{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-music-page-facet-value-schema-schema.json",
  "title": "MusicPage[FacetValueSchema]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-music-api-openapi.yml#/components/schemas/MusicPage_FacetValueSchema_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/FacetValueSchema"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total"
    },
    "limit": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Limit"
    },
    "offset": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Offset"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "limit",
    "offset"
  ],
  "$defs": {
    "FacetValueSchema": {
      "properties": {
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "title": "Value"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "value",
        "count"
      ],
      "title": "FacetValueSchema",
      "description": "A distinct value of a track field plus how many tracks carry it."
    }
  }
}