Package io.openapiparser
Interface Converter
-
public interface Converteryaml/json parser abstraction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectconvert(java.lang.String api)converts a source (json/yaml) document into a java object tree.
-
-
-
Method Detail
-
convert
java.lang.Object convert(java.lang.String api) throws ConverterExceptionconverts a source (json/yaml) document into a java object tree. The tree structure is based onMap<String, Object>. The root may not be aMapif the document just contains a single value.- Parameters:
api- a json/yaml document.- Returns:
- object tree of the document.
- Throws:
ConverterException- if conversion fails.
-
-