You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 insrc/ssvc/decision_points/base.py
to strip out HTML from the description field when calling theto_json
method provided by thedataclass_json
decorator.Another approach could be to override the encoder for
_Base.description
insrc/ssvc/_mixins.py
. See for example https://pypi.org/project/dataclasses-json/#OverridingThe text was updated successfully, but these errors were encountered: