{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://offeringprotocol.org/schemas/refinement-bucket.schema.json",
  "title": "ODP Refinement Bucket",
  "type": "object",
  "required": [
    "value",
    "count"
  ],
  "properties": {
    "value": {
      "type": [
        "string",
        "boolean",
        "integer",
        "number"
      ]
    },
    "count": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "count_relation": {
      "const": "lower_bound"
    }
  }
}
