Skip to content

Add references and @deprecated support to OcsfProfile#38

Merged
floydtree merged 2 commits intoocsf:mainfrom
floydtree:profile_validation_update
May 4, 2026
Merged

Add references and @deprecated support to OcsfProfile#38
floydtree merged 2 commits intoocsf:mainfrom
floydtree:profile_validation_update

Conversation

@floydtree
Copy link
Copy Markdown
Contributor

This adds the references and @deprecated properties to the OcsfProfile type definition to fix a failing unrecognized key check. The profile metaschema (profile.schema.json) already defines both properties, but the validator's OcsfProfile TypedDict was missing them, causing the "no unknown keys" check to fail when a profile uses references.

Converted OcsfProfile from class-based TypedDict to functional form (consistent with OcsfObject and OcsfEvent) since @deprecated is not a valid Python identifier.

Bumps version to 0.2.4.

Related to ocsf/ocsf-schema#1616

--

Tested locally, runs as expected.

floydtree added 2 commits May 1, 2026 14:18
Signed-off-by: Rajas Panat <rajaspa@amazon.com>
Signed-off-by: Rajas Panat <rajaspa@amazon.com>
@floydtree floydtree merged commit c343aa1 into ocsf:main May 4, 2026
5 checks passed
@floydtree floydtree deleted the profile_validation_update branch May 4, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants