You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that I've taken a look at the test application (btw: great approach!), I notice that you test against the perfect json but don't test that the springfox-grails-integration does not produce too much.
Everything output in addition to your test json is IMHO garbage and should be avoided.
Update:
here is an example for the POST song/create operation:
I guess this statement (from the GORM docs) might be the key to success: @JsonIgnoreProperties(['dirtyPropertyNames', 'errors', 'dirty', 'attached', 'version'])
Now that I've taken a look at the test application (btw: great approach!), I notice that you test against the perfect json but don't test that the springfox-grails-integration does not produce too much.
Everything output in addition to your test json is IMHO garbage and should be avoided.
Update:
here is an example for the
POST song/create
operation:The system outputs
for the model of the body
where something like
would have been enough...
https://github.com/rdmueller/springfox-grails-integration/blob/master/springfox-grails-contract-tests/grails-app/domain/grails/springfox/sample/Song.groovy
(id is autogenerated, but it would not matter if included in the model - it woud be ignored afaik. Same for version)
The text was updated successfully, but these errors were encountered: