-
Notifications
You must be signed in to change notification settings - Fork 42
Labels
content/representationFormatting, page layout, syntax, etc.Formatting, page layout, syntax, etc.
Milestone
Description
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
Assignees
Labels
content/representationFormatting, page layout, syntax, etc.Formatting, page layout, syntax, etc.