Skip to content

Generate Outcome_Group.schema.json using Pydantic #736

Closed as not planned
Closed as not planned

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/Outcome_Group-1-0-1.schema.json

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

The net result should be that the output of

from ssvc.outcomes.base import OutcomeGroup
import json
print(json.dumps(OutcomeGroup.model_json_schema(),indent=2))

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

Activity

  1. added
    tech/backendBack-end tools, code, infrastructure
    tech/dataData implementation (content of /data, data object instances, etc.)
    on Jul 1, 2025
  2. self-assigned this
    on Jul 29, 2025
  3. ahouseholder commented on Jul 29, 2025

    @ahouseholder
    ContributorAuthor

    This is redundant now that Outcome Groups inherit from Decision Point objects, so they will use the same schema.

  4. added this to the 2025-09 milestone on Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttech/backendBack-end tools, code, infrastructuretech/dataData implementation (content of /data, data object instances, etc.)wontfixThis will not be worked on

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions