shareandcharge / sharecharge-api

HTTP webserver for the Share&Charge e-Mobility Network
0 stars 0 forks source link

updating a location with invalid data #5

Closed AndreiD closed 6 years ago

AndreiD commented 6 years ago

updating the location with (I presume, invalid data) will empty the location's data.

Steps to reproduce:

PUT ON: {{server_addr}}/cpo/location/0x35312e3433333031322c372e3030343139

"PUT Request Returned >>> Location object not valid. Ensure location follows the OCPI model"

GET locations return ->


[
    {
        "scId": "0x35312e3433333031322c372e3030343139",
        "data": {
            "scId": "",
            "data": {
                "id": "",
                "type": "",
                "name": "",
                "address": "",
                "city": "",
                "postal_code": "",
                "country": "",
                "coordinates": {
                    "latitude": "",
                    "longitude": ""
                },
                "evses": null
            }
        }
    }
]
adamstaveley commented 6 years ago

Strange, it really shouldn't do this! I will look into it

adamstaveley commented 6 years ago

should now be fixed in 0.8.2 / latest commit