cdimascio / openapi-spring-webflux-validator

🌱 A friendly kotlin library to validate API endpoints using an OpenApi 3.0 and Swagger 2.0 specification
Other
97 stars 13 forks source link

Ability to log the raw request before deserialization and validations #30

Open karthikchejerla opened 3 years ago

karthikchejerla commented 3 years ago

Its quite useful to log the incoming request payload when using the validator. It standardizes the format and is useful to debug in production environments.

Headers can be logged if configured to do so, to prevent logging API-keys by accident.

PUT /products/1234

{
    "sku" : "1902992",
    "quantity" : 104
}