Class TypeDefinitionYamlDocument


  • public class TypeDefinitionYamlDocument
    extends java.lang.Object
    Loads type definitions in Yaml and exposes them in the same format as SyntheticXmlDocument to be picked up by the TypeSystemBootstrapper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.fasterxml.jackson.databind.ObjectMapper YAML_PARSER  
    • Field Detail

      • YAML_PARSER

        public static final com.fasterxml.jackson.databind.ObjectMapper YAML_PARSER
    • Method Detail

      • read

        public static TypeDefinitionYamlDocument read​(java.net.URL typeYaml)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • validateYaml

        public static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.lang.String file)
                                                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • validateYaml

        public static java.util.Set<com.networknt.schema.ValidationMessage> validateYaml​(java.net.URL yaml)
                                                                                  throws java.io.IOException
        Throws:
        java.io.IOException