Allow empty values in event registrations API
Previous behaviour
The registration API does not allow empty values for text/integer fields that are not required.
Steps to reproduce:
- Create an event with a registration field that is not required.
- Register for the event.
- Use the API to update your event, and leave the registration field empty.
- The API does not allow it.
New behaviour
Steps to validate that it works:
- Create an event with a registration field that is not required.
- Register for the event.
- Use the API to update your event, and leave the registration field empty.
- The API allows it and your registration is successfully saved.