Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

io-interfaces

defines the interfaces for the pluggable document reader and json/yaml converter. Only needed for implementing additional reader or converter.

Reader

the Reader interface is used to read OpenAPI json/yaml documents:

InputStream read(URI uri) throws IOException;

Converter

the Converter interface is used to convert a json/yaml document into a java Object tree. The tree structure should be a Map<String, Object>.

Object convert (String api) throws ConverterException;

The root may not be Map if the document just contains a single value.

Examples