@CompileStatic class ValidationErrorsContent extends java.lang.Object
The validation errors a request that cannot be bound is answered with, described once as a schema of the document's own.
The converters render the errors, in JSON and XML, and answer with 422. Where the application renders with JSON views, a view renders them in JSON instead: the errors view an application is generated with, which answers with 422, a controller's own errors view, which answers as it sets, or, without either, the view for any object, which answers with success. A schema the base document declares under the name describes the errors in every media type, in place of these.
| Constructor and description |
|---|
ValidationErrorsContent(io.swagger.v3.oas.models.Components components, ErrorsViews views, java.lang.String schemaName, boolean declared)
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
io.swagger.v3.oas.models.media.Content |
content(GrailsControllerClass controller, java.util.Map<java.lang.String, java.lang.Boolean> mediaTypes)The errors a failed validation answers with, in each media type it answers with 422 in. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
views - the views that render the errors in JSONschemaName - the name the errors are described underdeclared - whether the base document declares the errors, under that nameThe errors a failed validation answers with, in each media type it answers with 422 in.
null where the errors are answered with 422 in none of them