Skip to content

Remove markdown formatting from the Safety Decision point #483

@ahouseholder

Description

@ahouseholder

This issue could be made redunant by a solution to

Otherwise, at present, we have HTML content in the description of the Safety decision point following the merge of #479. The end result, as described in that PR

is that the JSON file emitted contains that HTML markup, and it really should not.

One approach would be to add a wrapper method on the SsvcDecisionPointValue class in src/ssvc/decision_points/base.py to strip out HTML from the description field when calling the to_json method provided by the dataclass_json decorator.

Another approach could be to override the encoder for _Base.description in src/ssvc/_mixins.py. See for example https://pypi.org/project/dataclasses-json/#Overriding

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions