Releases: LUSHDigital/microservice-core-golang
Releases · LUSHDigital/microservice-core-golang
1.0.1
In the even that JSON input is malformed (syntax error), we'd return a 422. If however, the caller were to use the wrong data type for a field, (see below), we'd return a 500. This tag/release returns 422s for all JSON-related issues, as they all pertain to duff input from the caller.
{
"name": 123
}
1.0.0
Using JSON marshaller instead of encoder and allowing custom message for SQLError.
Replaced usage of json.NewEncoder
with json.Marshal
.
Signature of PaginatedResponse.WriteTo
and JSONResponseFormatter
now changed to return an error.
0.1.2
Changed SQL no error status code from 422 to 204
0.1.2
Really minor stuff and a few extra tests.
0.1.0
Initial Release