List of usage examples for com.fasterxml.jackson.module.jsonSchema.customProperties ValidationSchemaFactoryWrapper ValidationSchemaFactoryWrapper
public ValidationSchemaFactoryWrapper()
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(); }