Class ExternalRefCustomDefinitionProvider

java.lang.Object
com.github.victools.jsonschema.module.swagger2.ExternalRefCustomDefinitionProvider
All Implemented Interfaces:
com.github.victools.jsonschema.generator.CustomDefinitionProviderV2, com.github.victools.jsonschema.generator.StatefulConfig

public class ExternalRefCustomDefinitionProvider extends Object implements com.github.victools.jsonschema.generator.CustomDefinitionProviderV2
Replace any type annotated with @Schema(ref = "...") with the specified reference value, unless it is the main schema being targeted.
  • Constructor Details

    • ExternalRefCustomDefinitionProvider

      public ExternalRefCustomDefinitionProvider()
  • Method Details

    • provideCustomSchemaDefinition

      public com.github.victools.jsonschema.generator.CustomDefinition provideCustomSchemaDefinition(com.fasterxml.classmate.ResolvedType javaType, com.github.victools.jsonschema.generator.SchemaGenerationContext context)
      Specified by:
      provideCustomSchemaDefinition in interface com.github.victools.jsonschema.generator.CustomDefinitionProviderV2
    • resetAfterSchemaGenerationFinished

      public void resetAfterSchemaGenerationFinished()
      Specified by:
      resetAfterSchemaGenerationFinished in interface com.github.victools.jsonschema.generator.StatefulConfig