Class StreamLoader
java.lang.Object
io.micronaut.jsonschema.generator.loaders.StreamLoader
- All Implemented Interfaces:
SchemaLoader
Loads a JSON schema from an Input Stream.
This class implements the
SchemaLoader
interface and provides the functionality
to load a JSON schema from an input stream, typically used when the data comes from
a non-file source such as a network stream, in-memory byte data, or testing.- Author:
- Elif Kurtay
-
Field Summary
Fields inherited from interface io.micronaut.jsonschema.generator.loaders.SchemaLoader
JSON_MAPPER
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StreamLoader
-
-
Method Details
-
load
Description copied from interface:SchemaLoader
Loads a JSON schema.- Specified by:
load
in interfaceSchemaLoader
- Returns:
- a
Schema
object representing the loaded JSON schema
-