openapi-core
openapi-core copied to clipboard
[Question] Is there an option to change the flow of calling validation & formatting.
- Currently formatter is called after validating the field, is there any option to alter this flow.
- use-case: - I have to trim string values before validating with
minLength
.
@sarangsbabu367
That sounds like use case for you request/response library. You should try to do this with some kind of middleware. Alternatively you can try to create custom formatter with trim option.
@p1c2u If we make a custom formatter, still formatter is called after validation. So it wont be useful.