Class DeserializationUtils


  • public class DeserializationUtils
    extends Object
    • Constructor Detail

      • DeserializationUtils

        public DeserializationUtils()
    • Method Detail

      • deserializeIntoTree

        public static com.fasterxml.jackson.databind.JsonNode deserializeIntoTree​(String contents,
                                                                                  String fileOrHost)
      • deserialize

        public static <T> T deserialize​(Object contents,
                                        String fileOrHost,
                                        Class<T> expectedType)
      • deserialize

        public static <T> T deserialize​(Object contents,
                                        String fileOrHost,
                                        Class<T> expectedType,
                                        boolean openapi31)
      • isJson

        public static boolean isJson​(String contents)
      • buildLoaderOptions

        public static org.yaml.snakeyaml.LoaderOptions buildLoaderOptions()
      • readYamlTree

        public static com.fasterxml.jackson.databind.JsonNode readYamlTree​(String contents)
      • readYamlTree

        public static com.fasterxml.jackson.databind.JsonNode readYamlTree​(String contents,
                                                                           ParseOptions parseOptions,
                                                                           SwaggerParseResult deserializationUtilsResult)
      • readYamlValue

        public static <T> T readYamlValue​(String contents,
                                          Class<T> expectedType)
      • readYamlValue

        public static <T> T readYamlValue​(String contents,
                                          Class<T> expectedType,
                                          boolean openapi31)
      • buildSnakeYaml

        public static org.yaml.snakeyaml.Yaml buildSnakeYaml​(org.yaml.snakeyaml.constructor.BaseConstructor constructor)