Skip to content

Commit ee902e3

Browse files
committed
fixup: fix headers, add structure to occurance details
Signed-off-by: Todd Baert <[email protected]>
1 parent c70a6ab commit ee902e3

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

specification.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,20 @@
10951095
"content": "If the client's `track` function is called and the associated provider does not implement tracking, the client's `track` function MUST no-op.",
10961096
"RFC 2119 keyword": "MUST",
10971097
"children": []
1098+
},
1099+
{
1100+
"id": "Requirement 6.2.1",
1101+
"machine_id": "requirement_6_2_1",
1102+
"content": "The `occurrence details` structure MUST define an optional numeric `value`, associating a scalar quality with an `occurrence`.",
1103+
"RFC 2119 keyword": "MUST",
1104+
"children": []
1105+
},
1106+
{
1107+
"id": "Requirement 6.2.2",
1108+
"machine_id": "requirement_6_2_2",
1109+
"content": "The `occurrence details` MUST support the inclusion of custom fields, having keys of type `string`, and values of type `boolean | string | number | structure`.",
1110+
"RFC 2119 keyword": "MUST",
1111+
"children": []
10981112
}
10991113
]
11001114
}

specification/sections/06-tracking.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,22 @@ See: [context levels and merging](./03-evaluation-context.md#32-context-levels-a
8080

8181
> If the client's `track` function is called and the associated provider does not implement tracking, the client's `track` function **MUST** no-op.
8282
83-
## 6.2. Occurrence Details
83+
### 6.2. Occurrence Details
8484

8585
The `occurrence details` structure defines optional data pertinent to a particular `occurrence`.
8686

87-
### Requirement 6.2.1
87+
#### Requirement 6.2.1
8888

8989
> The `occurrence details` structure **MUST** define an optional numeric `value`, associating a scalar quality with an `occurrence`.
9090
9191
`Value` is a well-defined field which some providers may map to equivalent numeric values in their API.
9292

9393
See [provider tracking support](./02-providers.md#27-tracking-support).
9494

95-
### Requirement 6.2.2
95+
#### Requirement 6.2.2
9696

97-
> The `occurrence details` **MUST** support the inclusion of custom fields, having keys of type `string`, and values of type `boolean | string | number`.
97+
> The `occurrence details` **MUST** support the inclusion of custom fields, having keys of type `string`, and values of type `boolean | string | number | structure`.
98+
99+
The `occurrence details` supports the addition of arbitrary fields, including nested objects, similar to the `evaluation context` and object-typed flag values.
100+
101+
See [structure](../types.md#structure), [evaluation context](.//03-evaluation-context.md).

0 commit comments

Comments
 (0)