gost / server

GOST - Go implementation of OGC SensorThings API
MIT License
61 stars 19 forks source link

Mandatory fields and empty strings #131

Closed bertt closed 7 years ago

bertt commented 7 years ago

Server should accept empty string as mandatory parameter.

Example: http post http://gost.geodan.nl/v1.0/Sensors { "name":"num_bikes_available", "encodingType": "application/pdf", "metadata": "", "description": "Number of bikes available" }

Actual response: { "error": { "status": "Bad Request", "code": 400, "message": [ "Missing mandatory parameter: Sensor.metadata" ] } }

Expected response: http 200 ok

Maybe this occurs also on other places.

bertt commented 7 years ago

but scratchpad returns http 400, BAD_REQUEST, "Request body has semantically invalid content"

bertt commented 7 years ago

or we must decide mandatory means non empty