Describe the bug
While working with a client's Command Centre instance I found that a number of EventSummary (while tailing the /events/updates endpoint)objects were failing to parse due to missing attributes or the attributes being too strict.
To Reproduce
Steps to reproduce the behavior:
- Run the test_events.py
- Or try and validate the response from
/api/events/updates using EventSummary
Expected behavior
The validation should pass, instead the following fail:
operator.href required and should be optional
card.id is not sent down in the response
modified_item.href is required and it not sent down
source.href should be optional
Screenshots
NA
Desktop (please complete the following information):
NA
Smartphone (please complete the following information):
NA
Additional context
Describe the bug
While working with a client's Command Centre instance I found that a number of
EventSummary(while tailing the/events/updatesendpoint)objects were failing to parse due to missing attributes or the attributes being too strict.To Reproduce
Steps to reproduce the behavior:
/api/events/updatesusingEventSummaryExpected behavior
The validation should pass, instead the following fail:
operator.hrefrequired and should be optionalcard.idis not sent down in the responsemodified_item.hrefis required and it not sent downsource.hrefshould be optionalScreenshots
NA
Desktop (please complete the following information):
NA
Smartphone (please complete the following information):
NA
Additional context
2.10) #208.9followcommand is targeting the right URLs.