Class ModelTypeDetector


  • public class ModelTypeDetector
    extends Object
    • Constructor Detail

      • ModelTypeDetector

        public ModelTypeDetector()
    • 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 -