Class SchemaWriter
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.schema.SchemaWriter
-
public class SchemaWriter extends Object
Writing the Schema to json- Author:
- Phillip Kruger ([email protected]), Eric Wittmann ([email protected])
- See Also:
- schemaObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
writeSchema(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.media.Schema model, String name)
Writes aSchema
to the JSON tree.static void
writeSchemas(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.media.Schema> schemas)
Writes a map ofSchema
to the JSON tree.
-
-
-
Method Detail
-
writeSchemas
public static void writeSchemas(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.media.Schema> schemas)
Writes a map ofSchema
to the JSON tree.- Parameters:
parent
- the parent json nodeschemas
- map of Schema models
-
writeSchema
public static void writeSchema(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.media.Schema model, String name)
Writes aSchema
to the JSON tree.- Parameters:
parent
- the parent json nodemodel
- Schema modelname
- name of the node
-
-