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

Correct type for priority field #959

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

jbertman
Copy link
Contributor

@jbertman jbertman commented Feb 7, 2024

Description of changes:

Other normalized string fields that map to an enum are strings, not integers. The sample data API generates a string for the priority field, which fails the JSON schema validation. This corrects the type to reflect the paradigm in the rest of the schema.

Signed-off-by: Jason Bertman <[email protected]>
Signed-off-by: Jason Bertman <[email protected]>
@jbertman jbertman marked this pull request as ready for review February 7, 2024 20:55
mikeradka
mikeradka previously approved these changes Feb 7, 2024
Copy link
Contributor

@mikeradka mikeradka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, and thanks for adding the note to CHANGELOG. Only small request, we might want to tag this PR with "bug" if it's not already tagged with it. Imo it is a legitimate bug, though there could be something I'm missing.

@floydtree
Copy link
Contributor

This is definitely a bug, thanks for fixing it!

@floydtree floydtree added bug Something isn't working v1.2.0 Changes marked for version v1.2.0 of OCSF labels Feb 7, 2024
CHANGELOG.md Show resolved Hide resolved
@mikeradka mikeradka self-requested a review February 7, 2024 21:18
Signed-off-by: Jason Bertman <[email protected]>
Copy link
Contributor

@mikeradka mikeradka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Copy link
Contributor

@Aniak5 Aniak5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@Aniak5 Aniak5 merged commit fa8e889 into ocsf:main Feb 8, 2024
2 checks passed
@jbertman jbertman deleted the priority-normalized-type-fix branch February 8, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.2.0 Changes marked for version v1.2.0 of OCSF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants