Class Swagger2SubtypeResolver

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

public class Swagger2SubtypeResolver extends Object implements com.github.victools.jsonschema.generator.SubtypeResolver
Subtype resolver considering @Schema(subTypes = ...) and as fall-back @Schema(anyOf = ...).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.fasterxml.classmate.ResolvedType>
    findSubtypes(com.fasterxml.classmate.ResolvedType declaredType, com.github.victools.jsonschema.generator.SchemaGenerationContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.victools.jsonschema.generator.StatefulConfig

    resetAfterSchemaGenerationFinished
  • Constructor Details

    • Swagger2SubtypeResolver

      public Swagger2SubtypeResolver()
  • Method Details

    • findSubtypes

      public List<com.fasterxml.classmate.ResolvedType> findSubtypes(com.fasterxml.classmate.ResolvedType declaredType, com.github.victools.jsonschema.generator.SchemaGenerationContext context)
      Specified by:
      findSubtypes in interface com.github.victools.jsonschema.generator.SubtypeResolver