OS2iot / OS2iot-backend

This repository contains the backend to the project OS2iot.
Mozilla Public License 2.0
10 stars 7 forks source link

Missing validation on 'type', when creating a new Iot-device #135

Closed ellesgaard closed 6 months ago

ellesgaard commented 2 years ago

Server returns 500 when creating an IoT-device without a type. Response should be 400, with a validation error of missing/incorrect type. As is done, if name is missing.

Submitting w/o a type returns 500 500

Submitting w/o a name returns 400 400

Check that server returns 201, when all three params is present ok

ramogens commented 2 years ago

Thank you for pitching in and for thorough reporting @ellesgaard . We'll put the bug in the maintenance backlog.