From fa2014ec862b63751a7e52fbf6dea2e0b7db8c81 Mon Sep 17 00:00:00 2001 From: Jack Berg Date: Wed, 5 Nov 2025 13:59:01 -0600 Subject: [PATCH] Add constraints to Base2ExponentialBucketHistogramAggregation properties --- schema-docs.md | 18 ++++++++++++------ schema/meter_provider.json | 7 +++++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/schema-docs.md b/schema-docs.md index 443586ee..de10ffa0 100644 --- a/schema-docs.md +++ b/schema-docs.md @@ -395,8 +395,8 @@ Usages: | Property | Type | Required? | Constraints | Description | |---|---|---|---|---| -| `max_scale` | one of:
* `integer`
* `null`
| `false` | No constraints. | TODO | -| `max_size` | one of:
* `integer`
* `null`
| `false` | No constraints. | TODO | +| `max_scale` | one of:
* `integer`
* `null`
| `false` | * `minimum`: `-10`
* `maximum`: `20`
| TODO | +| `max_size` | one of:
* `integer`
* `null`
| `false` | * `minimum`: `2`
| TODO | | `record_min_max` | one of:
* `boolean`
* `null`
| `false` | No constraints. | TODO |
@@ -432,13 +432,16 @@ Usages: "type": [ "integer", "null" - ] + ], + "minimum": -10, + "maximum": 20 }, "max_size": { "type": [ "integer", "null" - ] + ], + "minimum": 2 }, "record_min_max": { "type": [ @@ -3792,13 +3795,16 @@ Usages: "type": [ "integer", "null" - ] + ], + "minimum": -10, + "maximum": 20 }, "max_size": { "type": [ "integer", "null" - ] + ], + "minimum": 2 }, "record_min_max": { "type": [ diff --git a/schema/meter_provider.json b/schema/meter_provider.json index d6ea27de..6636ca6d 100644 --- a/schema/meter_provider.json +++ b/schema/meter_provider.json @@ -455,10 +455,13 @@ "additionalProperties": false, "properties": { "max_scale": { - "type": ["integer", "null"] + "type": ["integer", "null"], + "minimum": -10, + "maximum": 20 }, "max_size": { - "type": ["integer", "null"] + "type": ["integer", "null"], + "minimum": 2 }, "record_min_max": { "type": ["boolean", "null"]