kytos-ng / maintenance

Kytos Maintenance Window NApp
https://kytos-ng.github.io/api/maintenance.html
0 stars 8 forks source link

Fixes return codes and messages in case of a payload with empty items on patch actions #14

Closed ArturoQuintana closed 3 years ago

ArturoQuintana commented 3 years ago

It fixes issue #9.

Description of the change

The proposed implementation modifies the models.py file, specifically the update method, to check the item field's content. This contribution prevents the update or patching process in case an empty payload has been provided.

It is included new unit tests to support code changes.