Skip to content

Commit

Permalink
Merge pull request #1087 from ocsf/patch_state
Browse files Browse the repository at this point in the history
Fixed patch_state profile construction; Removed requirement overrides from _resource.
  • Loading branch information
zschmerber authored May 28, 2024
2 parents f39cb45 + 171a9e8 commit 34ba2f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Thankyou! -->
* #### Platform Extensions

### Bugfixes
1. Fixed the host profile construction in `patch_state` event class. #1087
2. Removed the optional requirement overrides for `name` and `uid` in `_resource` as they are part of a constraint. #1087

### Deprecated

Expand Down
4 changes: 4 additions & 0 deletions events/discovery/patch_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"host"
],
"attributes": {
"$include": [
"profiles/host.json"
],
"device": {
"profile": null,
"group": "primary",
"requirement": "required"
},
Expand Down
6 changes: 2 additions & 4 deletions objects/_resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@
"requirement": "optional"
},
"name": {
"description": "The name of the resource.",
"requirement": "optional"
"description": "The name of the resource."
},
"type": {
"description": "The resource type as defined by the event source.",
"requirement": "optional"
},
"uid": {
"description": "The unique identifier of the resource.",
"requirement": "optional"
"description": "The unique identifier of the resource."
}
}
}

0 comments on commit 34ba2f2

Please sign in to comment.