Skip to content

Commit 3ab8d01

Browse files
committed
Document new oneOf structure type
1 parent 9f9becd commit 3ab8d01

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* General
66
* BREAKING: Remove infill 0 buckets from custom distributions ([#3246](https://github.com/mozilla/glean/pull/3246))
7+
* Add a new `oneOf` type to Glean's object metric type structure ([#]())
78
* Swift
89
* Make `EventMetricType`, `ObjectMetricType`, `URLMetricType` and `Ping` `Sendable` ([#3255](https://github.com/mozilla/glean/pull/3255))
910
* Glean for iOS is now being built with Xcode 16.4 ([#3270](https://github.com/mozilla/glean/pull/3270))

docs/user/reference/metrics/object.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ The allowed types are:
218218
* `boolean`
219219
* `array`
220220
* `object`
221+
* `oneOf`
221222

222223
The `array` type takes an `items` parameter, that does define the element types it can hold.
223224
The `object` type takes a `properties` parameter, that defines the nested object structure.
@@ -226,6 +227,8 @@ The `object` type takes a `properties` parameter, that defines the nested object
226227
No other schema parameters are allowed.
227228
All fields are optional.
228229

230+
`oneOf` requires a list of alowed subtypes. The available types are `[string, number, boolean]`.
231+
229232
Data is validated against this schema at recording time.
230233
Missing values will not be serialized into the payload.
231234

0 commit comments

Comments
 (0)