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
Get Error:
{"_links":{"self":[{"href":"/fruits","templated":false}]},"_embedded":{"errors":[{"message":"Required argument [Fruit fruit] not specified","path":"/fruit"}]},"message":"Bad Request"}%
Just a note, until guides are fixed. In order to fix the app, need to add @Body annotation from io.micronaut.http.annotation package to the Fruit fruit parameter in save and update methods.
Expected Behavior
Running manual tests from the micronaut provided guide show work without error.
Guide: https://guides.micronaut.io/latest/micronaut-data-mongodb-synchronous-maven-java.html
Actual Behaviour
Running the manual tests from the micronaut provided guide throw an error.
Guide: https://guides.micronaut.io/latest/micronaut-data-mongodb-synchronous-maven-java.html
Steps To Reproduce
./mvnw test
and this works fine./mvnw rn:run
to start application, then run manual tests:curl -d '{"name":"Pear"}'
-H "Content-Type: application/json"
-X POST http://localhost:8080/fruits
Get Error:
{"_links":{"self":[{"href":"/fruits","templated":false}]},"_embedded":{"errors":[{"message":"Required argument [Fruit fruit] not specified","path":"/fruit"}]},"message":"Bad Request"}%
Environment Information
Example Application
https://guides.micronaut.io/latest/micronaut-data-mongodb-synchronous-maven-java.zip
Version
4.0.0
The text was updated successfully, but these errors were encountered: