Example usage for com.fasterxml.jackson.module.jsonSchema.customProperties ValidationSchemaFactoryWrapper ValidationSchemaFactoryWrapper

List of usage examples for com.fasterxml.jackson.module.jsonSchema.customProperties ValidationSchemaFactoryWrapper ValidationSchemaFactoryWrapper

Introduction

In this page you can find the example usage for com.fasterxml.jackson.module.jsonSchema.customProperties ValidationSchemaFactoryWrapper ValidationSchemaFactoryWrapper.

Prototype

public ValidationSchemaFactoryWrapper() 

Source Link

Usage

From source file:io.neocdtv.jarxrs.server.ResourceExample.java

@GET
@Path("schema-jackson-plugin")
public Response generateSchemaJacksonPlugin() throws JsonMappingException, IOException {
    ValidationSchemaFactoryWrapper visitor = new ValidationSchemaFactoryWrapper();
    ObjectMapper mapper = ServerObjectMapper.INSTANCE;
    mapper.acceptJsonFormatVisitor(Object1.class, visitor);
    JsonSchema jsonSchema = visitor.finalSchema();
    return Response.ok(jsonSchema.asContainerTypeSchema()).build();
}