Package io.apicurio.datamodels
Class ModelTypeDetector
- java.lang.Object
-
- io.apicurio.datamodels.ModelTypeDetector
-
public class ModelTypeDetector extends Object
-
-
Constructor Summary
Constructors Constructor Description ModelTypeDetector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelTypediscoverModelType(com.fasterxml.jackson.databind.node.ObjectNode json)Called to discover what type of model the given JSON data represents.
-
-
-
Method Detail
-
discoverModelType
public static ModelType discoverModelType(com.fasterxml.jackson.databind.node.ObjectNode json)
Called to discover what type of model the given JSON data represents. This method interrogates the following appropriate top level properties: - asyncapi - openapi - swagger Based on which property is defined, and the value of that property, the correct model type is determined and returned.- Parameters:
json-
-
-