Package io.vertx.openapi.validation.transformer

## Interface BodyTransformer

- All Known Implementing Classes:
    `ApplicationJsonTransformer`, `MultipartFormTransformer`

      public interface BodyTransformer

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Object` | `transformRequest​(MediaType type, ValidatableRequest request)` | Transforms the body of a request into a format that can be validated by the `RequestValidator`.
    `Object` | `transformResponse​(MediaType type, ValidatableResponse response)` | Transforms the body of a response into a format that can be validated by the `ResponseValidator`.

- - ### Method Detail

    - #### transformRequest

          Object transformRequest​(MediaType type,
                                  ValidatableRequest request)

      Transforms the body of a request into a format that can be validated by the `RequestValidator`.
      Parameters:
        `type` - the media type of the body.
        `request` - the request with the body to transform.
      Returns:
        the transformed body.

    - #### transformResponse

          Object transformResponse​(MediaType type,
                                   ValidatableResponse response)

      Transforms the body of a response into a format that can be validated by the `ResponseValidator`.
      Parameters:
        `type` - the media type of the body.
        `response` - the response with the body to transform.
      Returns:
        the transformed body.