-
Notifications
You must be signed in to change notification settings - Fork 142
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
Support @deprecated
, source
, and references
in enum items
#1227
Comments
@deprecation
and references
in enum values
@deprecation
and references
in enum values@deprecation
and references
in enum items
@deprecation
and references
in enum items@deprecated
and references
in enum items
@deprecated
and references
in enum items@deprecated
, source
, and references
in enum items
@query-jeremy : FYI class OcsfEnumMember(TypedDict):
caption: str
description: NotRequired[str]
notes: NotRequired[str] to this: OcsfEnumMember = TypedDict(
"OcsfEnumMember",
{
"@deprecated": NotRequired[OcsfDeprecationInfo],
"caption": str,
"description": NotRequired[str],
"source": NotRequired[str],
"references": NotRequired[OcsfReferences],
},
) and move the definition of I'll created a PR for this, but there's no rush in approving and publishing. ocsf/ocsf-validator#35 |
…m items (#1237) #### Related Issue: Issue #1227 #### Description of changes: Added support for `@deprecated`, `source`, and `references` in enum items. --------- Co-authored-by: Rajas <[email protected]>
Add support for
@deprecated
,source
, andreferences
in enum items.@deprecated
Currently, the server doesn't support deprecation of individual enum items, for example -
Consider a situation where we want to deprecate a specific item
4: Suppressed
from the enum above. There's no method to do so. We can extend the general deprecation functionality (@deprecated
tag) to allow deprecation to enums as well. To exemplify, the following metaschema attribute should deprecate the item in question -fysa, this a real use-case we recently witnessed. Refer - https://github.com/ocsf/ocsf-schema/pull/1219/files#r1819023305
source
This will allow capture OS native values, similar to the usage of
source
with attributes.references
This is needed to add Mitre D3fend references to specific enum values.
The text was updated successfully, but these errors were encountered: