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
s"request body schema validation failed on route '${ctx.route.id}': ${errors.mkString(", ")}"
158
-
)
159
156
if (config.failOnValidationError) {
157
+
JsonSchemaValidator.logger.warn(
158
+
s"request body schema validation failed on route '${ctx.route.id}': ${errors.mkString(", ")}"
159
+
)
160
160
Results
161
161
.UnprocessableEntity(
162
162
Json.obj(
@@ -166,6 +166,9 @@ class JsonSchemaRequestValidator extends NgRequestTransformer {
166
166
)
167
167
.left
168
168
} else {
169
+
JsonSchemaValidator.logger.warn(
170
+
s"request body schema validation failed on route '${ctx.route.id}' but fail_on_validation_error is disabled, letting request through: ${errors.mkString(", ")}"
s"response body schema validation failed on route '${ctx.route.id}': ${errors.mkString(", ")}"
217
-
)
218
218
if (config.failOnValidationError) {
219
+
JsonSchemaValidator.logger.warn(
220
+
s"response body schema validation failed on route '${ctx.route.id}': ${errors.mkString(", ")}"
221
+
)
219
222
Results
220
223
.BadGateway(
221
224
Json.obj(
@@ -225,6 +228,9 @@ class JsonSchemaResponseValidator extends NgRequestTransformer {
225
228
)
226
229
.left
227
230
} else {
231
+
JsonSchemaValidator.logger.warn(
232
+
s"response body schema validation failed on route '${ctx.route.id}' but fail_on_validation_error is disabled, letting response through: ${errors.mkString(", ")}"
0 commit comments