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 SSVC python module #342

Merged
merged 9 commits into from
Oct 16, 2023
Merged

Add SSVC python module #342

merged 9 commits into from
Oct 16, 2023

Conversation

ahouseholder
Copy link
Contributor

Represents SSVC v1, v2, v2.1 decision point groups and decision points as python dataclasses using the dataclasses-json module to allow for json format data roundtrip.

Includes schema and schema validation tests.

Note: this branch includes the schemas defined in PR #340, so we should resolve that PR before this one.

This PR is part 1 of N (where N is probably 2-4) that breaks up #339.
Future PRs will likely address #319 and #330, as well as add generated documentation based on the modules in this PR. I am deliberately keeping this PR limited to python changes necessary to implement a resolution to #325

Copy link
Contributor

@sei-vsarvepalli sei-vsarvepalli left a comment

Choose a reason for hiding this comment

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

Nice! The test cases are nice to have. Just need to some small updates to the JSON schema as they are actually been moved /data/schema/ path.

data/schema/Decision_Point.schema.json Outdated Show resolved Hide resolved
data/schema/Decision_Point_Group.schema.json Outdated Show resolved Hide resolved
@ahouseholder ahouseholder merged commit c853ebf into CERTCC:main Oct 16, 2023
@ahouseholder ahouseholder deleted the ssvc_py branch October 16, 2023 17:48
@ahouseholder ahouseholder mentioned this pull request Oct 17, 2023
1 task
jeroenh pushed a commit to jeroenh/SSVC that referenced this pull request Oct 18, 2023
* add new json schemas for decision points and dp groups

* add ssvc module to represent existing decision points and groups for SSVC v1, v2, v2.1

* add decision point group schema validation test

* add doc for csv analyzer

* Update Decision_Point.schema.json

change ID url to https://github.com/CERTCC/SSVC/tree/main/data/schema/...

* Update Decision_Point_Group.schema.json

change id url to https://github.com/CERTCC/SSVC/tree/main/data/schema/...

---------

Co-authored-by: Vijay Sarvepalli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tools Software Tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create python package to facilitate json round-tripping
2 participants