In regards to this issue, I propose the following fix.
Both in the POST as the PUT the issue was present. With PUT it was breaking, with POST it would save all present in the data-object (so also the 'version' field) of the request body.
Added a test that tests the sunny day case of this implementation.
https://github.com/TECHS-Technological-Solutions/ocpi/issues/53
In regards to this issue, I propose the following fix.
Both in the POST as the PUT the issue was present. With PUT it was breaking, with POST it would save all present in the data-object (so also the 'version' field) of the request body.
Added a test that tests the sunny day case of this implementation.