Class ApplicationJsonAnalyser
- java.lang.Object
-
- io.vertx.openapi.validation.analyser.ContentAnalyser
-
- io.vertx.openapi.validation.analyser.ApplicationJsonAnalyser
-
public class ApplicationJsonAnalyser extends ContentAnalyser
-
-
Field Summary
-
Fields inherited from class io.vertx.openapi.validation.analyser.ContentAnalyser
content, contentType, requestOrResponse
-
-
Constructor Summary
Constructors Constructor Description ApplicationJsonAnalyser(String contentType, Buffer content, ValidationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkSyntacticalCorrectness()
Checks if the content is syntactically correct.Object
transform()
Transforms the content into a format that can be validated by theRequestValidator
, orResponseValidator
.-
Methods inherited from class io.vertx.openapi.validation.analyser.ContentAnalyser
buildSyntaxException, decodeJsonContent, getContentAnalyser
-
-
-
-
Constructor Detail
-
ApplicationJsonAnalyser
public ApplicationJsonAnalyser(String contentType, Buffer content, ValidationContext context)
-
-
Method Detail
-
checkSyntacticalCorrectness
public void checkSyntacticalCorrectness()
Description copied from class:ContentAnalyser
Checks if the content is syntactically correct.Throws a
ValidatorException
if the content is syntactically incorrect.- Specified by:
checkSyntacticalCorrectness
in classContentAnalyser
-
transform
public Object transform()
Description copied from class:ContentAnalyser
Transforms the content into a format that can be validated by theRequestValidator
, orResponseValidator
.Throws a
ValidatorException
if the content can't be transformed.- Specified by:
transform
in classContentAnalyser
- Returns:
- the transformed content.
-
-