Class TypeDefinitionYamlDocument
java.lang.Object
com.xebialabs.xlplatform.synthetic.yaml.TypeDefinitionYamlDocument
Loads type definitions in Yaml and exposes them in the same format as
SyntheticXmlDocument
to be picked up by the TypeSystemBootstrapper.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper -
Method Summary
Modifier and TypeMethodDescriptiongetTypes()static TypeDefinitionYamlDocumentstatic TypeDefinitionYamlDocumentstatic Set<com.networknt.schema.ValidationMessage>validateYaml(String file) static Set<com.networknt.schema.ValidationMessage>validateYaml(URL yaml)
-
Field Details
-
YAML_PARSER
public static final com.fasterxml.jackson.databind.ObjectMapper YAML_PARSER
-
-
Method Details
-
getTypes
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
validateYaml
public static Set<com.networknt.schema.ValidationMessage> validateYaml(String file) throws IOException - Throws:
IOException
-
validateYaml
- Throws:
IOException
-