Experimenting with github forms syntax from decision points by ahouseholder · Pull Request #1038 · CERTCC/SSVC

# DM24-0278

"""
Provides TODO writeme

Choose a reason for hiding this comment

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

Add file docstring

Choose a reason for hiding this comment

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

remove main() etc.

# DM24-0278

"""
Provides TODO writeme

Choose a reason for hiding this comment

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

add file docstring

from ssvc.registry import get_registry


class GhFormCheckboxOption(BaseModel):

Choose a reason for hiding this comment

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

split GhForm* classes into their own separate module for maintenance

return cb


def json_to_yaml(json_str: str) -> str:

Choose a reason for hiding this comment

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

move json_to_yaml to a utils or helper module

return yaml.dump(data, sort_keys=False)


def expand_dps(

Choose a reason for hiding this comment

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

move expand_dps to a utils or helper module, this will be useful elsewhere.

Also consider making outcome exclusion optional at the top level