Allow cancel of alert via API with no description

The XML for an alerts requires a `<description>` field. The XML for
a `<cancel>` may have a `<description>` field populated (although we
ignore the contents) but it may also be empty.

This commit updates the schema to leave the all the validation to the
view layer, which can decide when or when not to validate the content of
the `<description>` field.
This commit is contained in:
Chris Hill-Scott
2022-02-14 14:34:25 +00:00
parent 288f5d11cd
commit d73131bbec
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ WAINFLEET_CANCEL = """
<certainty>Likely</certainty>
<expires>2020-02-16T23:30:13-00:00</expires>
<senderName>Environment Agency</senderName>
<description>Cancel Warning</description>
<description></description>
<web>https://flood-warning-information.service.gov.uk</web>
<contact>0345 988 1188</contact>
<area>