Skip to content

Generate Decision_Point_Value_Selection.schema.json using Pydantic #735

Description

@ahouseholder

Describe the solution you'd like

Back-port the fields that are found in the hand-built JSON Schema

https://github.com/CERTCC/SSVC/blob/main/data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json

to create a functional match using Pydantic's JSON schema feature set.

Important

Unlike #733 and #734, this schema does not currently correspond to any existing Python dataclass. Creation of such a class is an additional item to be addressed as part of resolving this issue.

The net result should be that the output of

from ssvc.<SOMETHING> import <SOMETHING>
import json
print(json.dumps(<SOMETHING>.model_json_schema(),indent=2))

is as close as possible to https://github.com/CERTCC/SSVC/blob/main/data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestintegrationRelated to integration of SSVC into another framework or systemtech/backendBack-end tools, code, infrastructure

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions