mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
![]() As @skolen mentioned out, the `ID` field of the embedded struct `Model` in the model `User` must be serialized so it can be included in the responses. In the previous commit we completely ignored the field with the tag `json:"-"` so we can compare the serialized request (where ID was 0) with the response of the API. To limit the omission of the `User.ID` field only for the case that its value is 0 we modify the tag to `json:",omitempty"`. |
||
---|---|---|
.. | ||
amqpclient.go | ||
database.go | ||
database_test.go | ||
models.go | ||
responses.go | ||
roles.go | ||
serializers.go | ||
testdata.go | ||
utilities.go |