Skip to content

Commit 9dc3316

Browse files
s-Flfloydtree
andauthored
Modify constraints for the name and uid attributes of extension object (ocsf#1511)
#### Related Issue: ocsf#1510 #### Description of changes: Derive constraints for `name` & `uid` attributes from the `_entity` object. --------- Signed-off-by: s-Fl <74200804+s-Fl@users.noreply.github.com> Signed-off-by: Rajas <89877409+floydtree@users.noreply.github.com> Co-authored-by: Rajas <89877409+floydtree@users.noreply.github.com>
1 parent 706ac2a commit 9dc3316

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Thankyou! -->
6868
1. Added `reporter` to the `metadata` object. [#1476](https://github.com/ocsf/ocsf-schema/pull/1476)
6969
1. Added `event_uid` and `type_uid` to the `observable` object. [#1503](https://github.com/ocsf/ocsf-schema/pull/1503)
7070
1. Relaxed the `file` attribute requirement to `optional` in the `job` object. [#1509](https://github.com/ocsf/ocsf-schema/pull/1509)
71+
1. Relaxed the `name` and `uid` requirement to `recommended` with `at_least_one` constraint in the `extension` object. [#1511](https://github.com/ocsf/ocsf-schema/pull/1511)
7172
* #### Observables
7273
* #### Platform Extensions
7374
* #### Dictionary Attributes

objects/extension.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
"name": "extension",
66
"attributes": {
77
"name": {
8-
"description": "The schema extension name. For example: <code>dev</code>.",
9-
"requirement": "required"
8+
"description": "The schema extension name. For example: <code>dev</code>."
109
},
1110
"uid": {
12-
"description": "The schema extension unique identifier. For example: <code>999</code>.",
13-
"requirement": "required"
11+
"description": "The schema extension unique identifier. For example: <code>999</code>."
1412
},
1513
"version": {
1614
"description": "The schema extension version. For example: <code>1.0.0-alpha.2</code>.",
1715
"requirement": "required"
1816
}
19-
},
20-
"constraints": {}
21-
}
17+
}
18+
}

0 commit comments

Comments
 (0)