Errata

Quarkus Cookbook

Errata for Quarkus Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Chapter 5
chapter 5


I am submitting this errata report on behalf of one of our platform customers. - Jim Gleaves, Technical Support, O'Reilly Media

-----------
In chapter 5 of the book Quarkus Cookbook there is a statement that a validation error does not generate response with details of the error:


"But notice that if there is an error, the response does not contain any information about what has failed. That’s fine because it is important to show the internals not directly, but in a controlled way."

But when I reproduced the same code a payload was generated in the response with error details:

{
"classViolations": [],
"parameterViolations": [
{
"constraintType": "PARAMETER",
"message": "size must be between 4 and 2147483647",
"path": "addDeveloper.developer.name",
"value": "Ada"
}
],
"propertyViolations": [],
"returnValueViolations": []
}


I didn't find any information about this at https://quarkus.io/guides/validation

This page (https://vepo.github.io/posts/using-bean-Validation-on-quarkus) indeed mentions "if you used on Endpoints it will enable HTTP validation returning a Bad Request response, as we can see in the response bellow. This is not a good way to present errors on a REST API, but at least follow some patterns as returning the correct HTTP Status Code and informing all constraint violations."


Is there how to configure the validation response ?

Anonymous  Aug 10, 2021 
Other Digital Version 4020
6.3 Uber-Jar Packaging

Just inform that the book indicates in section 6.3 that the configuration property must be: “quarkus.package.uber-jar=true”. But in the latest version of Quarkus my “Visual Code” indicates that should be: “quarkus.package.type=uber-jar” (I saw that quarkus.package.uber-jar has no effect). Thank you very much, greetings.

Fernando Vidal Nadal  Aug 25, 2021