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
To protect our system from large request payloads, we want to limit the read of the payload from the request to a configurable limit (example: 10 MB)
During the course of processing , we have other steps which also need to read the request payload. We want to avoid reading the same payload (and then putting it back to the request) from the request more than once.
To fulfil above usecases, do we have any way to achieve it currently or can we provide the payload directly via any other API?
Regards,
Pratik Sharma
The text was updated successfully, but these errors were encountered:
pratik-sharma-1
changed the title
Any way to pass the payload directly in validate
Any way to pass the payload directly in ValidateRequestBody
Oct 17, 2023
Hi Team,
To validate the request body against openapi spec , we currently use method ValidateRequestBody defined at https://github.com/getkin/kin-openapi/blob/master/openapi3filter/validate_request.go#L196.
However, we also need to fulfil below 2 usecases:
Currently , ValidateRequestBody does a io.ReadAll (https://github.com/getkin/kin-openapi/blob/master/openapi3filter/validate_request.go#L210)
To fulfil above usecases, do we have any way to achieve it currently or can we provide the payload directly via any other API?
Regards,
Pratik Sharma
The text was updated successfully, but these errors were encountered: