Class RequestBodyValidator
java.lang.Object
com.predic8.membrane.core.openapi.validators.AbstractBodyValidator<Request<? extends Body>>
com.predic8.membrane.core.openapi.validators.RequestBodyValidator
-
Field Summary
Fields inherited from class com.predic8.membrane.core.openapi.validators.AbstractBodyValidator
api -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intIf the media type is not supported the status code should be different for requests and responsesMethods inherited from class com.predic8.membrane.core.openapi.validators.AbstractBodyValidator
validateBodyAccordingToMediaType, validateBodyInternal, validateContentTypeHeader, validateMediaTypeForMessageType
-
Constructor Details
-
RequestBodyValidator
public RequestBodyValidator(io.swagger.v3.oas.models.OpenAPI api)
-
-
Method Details
-
getDefaultStatusCode
public int getDefaultStatusCode()- Specified by:
getDefaultStatusCodein classAbstractBodyValidator<Request<? extends Body>>
-
getMessageName
- Specified by:
getMessageNamein classAbstractBodyValidator<Request<? extends Body>>
-
getStatusCodeForWrongMediaType
protected int getStatusCodeForWrongMediaType()Description copied from class:AbstractBodyValidatorIf the media type is not supported the status code should be different for requests and responses- Specified by:
getStatusCodeForWrongMediaTypein classAbstractBodyValidator<Request<? extends Body>>
-