Class ApplicationJsonTransformer
- java.lang.Object
-
- io.vertx.openapi.validation.transformer.ApplicationJsonTransformer
-
- All Implemented Interfaces:
BodyTransformer
public class ApplicationJsonTransformer extends Object implements BodyTransformer
-
-
Constructor Summary
Constructors Constructor Description ApplicationJsonTransformer()
-
Method Summary
All Methods Instance Methods Concrete 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 theRequestValidator
.Object
transformResponse(MediaType type, ValidatableResponse response)
Transforms the body of a response into a format that can be validated by theResponseValidator
.
-
-
-
Method Detail
-
transformRequest
public Object transformRequest(MediaType type, ValidatableRequest request)
Description copied from interface:BodyTransformer
Transforms the body of a request into a format that can be validated by theRequestValidator
.- Specified by:
transformRequest
in interfaceBodyTransformer
- Parameters:
type
- the media type of the body.request
- the request with the body to transform.- Returns:
- the transformed body.
-
transformResponse
public Object transformResponse(MediaType type, ValidatableResponse response)
Description copied from interface:BodyTransformer
Transforms the body of a response into a format that can be validated by theResponseValidator
.- Specified by:
transformResponse
in interfaceBodyTransformer
- Parameters:
type
- the media type of the body.response
- the response with the body to transform.- Returns:
- the transformed body.
-
-