Class SchemaGeneratorConfigBuilder


  • public class SchemaGeneratorConfigBuilder
    extends Object
    Builder class for creating a configuration object to be passed into the SchemaGenerator's constructor.
    • Constructor Detail

      • SchemaGeneratorConfigBuilder

        public SchemaGeneratorConfigBuilder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                            SchemaVersion schemaVersion)
        Constructor of an empty configuration builder. This is equivalent to calling:
        new SchemaGeneratorConfigBuilder(objectMapper, schemaVersion, OptionPreset.FULL_DOCUMENTATION)
        Parameters:
        objectMapper - supplier for object and array nodes for the JSON structure being generated
        schemaVersion - designated JSON Schema version
        See Also:
        SchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
      • SchemaGeneratorConfigBuilder

        public SchemaGeneratorConfigBuilder​(SchemaVersion schemaVersion)
        Constructor of an empty configuration builder with a default ObjectMapper instance. This is equivalent to calling:
        new SchemaGeneratorConfigBuilder(schemaVersion, OptionPreset.FULL_DOCUMENTATION)
        Parameters:
        schemaVersion - designated JSON Schema version
        See Also:
        SchemaGeneratorConfigBuilder(ObjectMapper, SchemaVersion, OptionPreset)
      • SchemaGeneratorConfigBuilder

        @Deprecated
        public SchemaGeneratorConfigBuilder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                            OptionPreset preset)
        Constructor of an empty configuration builder for a Draft 7 schema. This is equivalent to calling:
        new SchemaGeneratorConfigBuilder(objectMapper, SchemaVersion.DRAFT_7, preset)
        Parameters:
        objectMapper - supplier for object and array nodes for the JSON structure being generated
        preset - default settings for standard Option values
      • SchemaGeneratorConfigBuilder

        public SchemaGeneratorConfigBuilder​(SchemaVersion schemaVersion,
                                            OptionPreset preset)
        Constructor of an empty configuration builder with a default ObjectMapper instance.
        Parameters:
        schemaVersion - designated JSON Schema version
        preset - default settings for standard Option values
      • SchemaGeneratorConfigBuilder

        public SchemaGeneratorConfigBuilder​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                            SchemaVersion schemaVersion,
                                            OptionPreset preset)
        Constructor of an empty configuration builder.
        Parameters:
        objectMapper - supplier for object and array nodes for the JSON structure being generated
        schemaVersion - designated JSON Schema version
        preset - default settings for standard Option values