Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new ways to define observables to metaschema #982

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Thankyou! -->

### Misc
1. New Extension registration for Sedara. #951
2. Add new ways to define observables to metaschema. #982

<!-- All available sections in the Changelog:

Expand Down
3 changes: 3 additions & 0 deletions metaschema/dictionary-attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
"is_array": {
"type": "boolean",
"description": "A flag used when the attribute represents an array of values rather than a single value."
},
"observable": {
"$ref": "observable.schema.json"
}
},
"additionalProperties": false
Expand Down
10 changes: 10 additions & 0 deletions metaschema/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
"description": "A unique identifier for this event, must be unique within the category.",
"minimum": 0,
"maximum": 999
},
"observables": {
"type": "object",
"description": "Defines class-specific observables by attribute path.",
"patternProperties": {
"^[a-z0-9_]+(\\.[a-z0-9_]+)*$": {
"$ref": "observable.schema.json"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
Loading