Class SchemaWriter

    • 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 of Schema to the JSON tree.
        Parameters:
        parent - the parent json node
        schemas - 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 a Schema to the JSON tree.
        Parameters:
        parent - the parent json node
        model - Schema model
        name - name of the node