Package io.swagger.v3.core.jackson
Class ModelResolver
- java.lang.Object
-
- io.swagger.v3.core.jackson.AbstractModelConverter
-
- io.swagger.v3.core.jackson.ModelResolver
-
- All Implemented Interfaces:
ModelConverter
public class ModelResolver extends AbstractModelConverter implements ModelConverter
-
-
Field Summary
Fields Modifier and Type Field Description static booleancomposedModelPropertiesAsSiblingstatic booleanenumsAsRefAllows all enums to be resolved as a reference to a scheme added to the components section.static List<String>NOT_NULL_ANNOTATIONSstatic StringSET_PROPERTY_OF_COMPOSED_MODEL_AS_SIBLINGstatic StringSET_PROPERTY_OF_ENUMS_AS_REF-
Fields inherited from class io.swagger.v3.core.jackson.AbstractModelConverter
_intr, _mapper, _resolvedTypeNames, _typeNameResolver
-
-
Constructor Summary
Constructors Constructor Description ModelResolver(com.fasterxml.jackson.databind.ObjectMapper mapper)ModelResolver(com.fasterxml.jackson.databind.ObjectMapper mapper, TypeNameResolver typeNameResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_addEnumProps(Class<?> propClass, Schema property)Adds each enum property value to the model schemaprotected boolean_isOptionalType(com.fasterxml.jackson.databind.JavaType propType)protected voidaddRequiredItem(Schema model, String propName)protected voidapplyBeanValidatorAnnotations(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef, Schema property, Annotation[] annotations, Schema parent, boolean applyNotNullAnnotations)protected voidapplyBeanValidatorAnnotations(Schema property, Annotation[] annotations, Schema parent, boolean applyNotNullAnnotations)protected SchemabuildRefSchemaIfObject(Schema schema, ModelConverterContext context)protected StringdecorateModelName(AnnotatedType type, String originalName)Decorate the name based on the JsonViewprotected TypefindJsonValueType(com.fasterxml.jackson.databind.BeanDescription beanDesc)protected List<Class<?>>getComposedSchemaReferencedClasses(Class<?> clazz, Annotation[] ctxAnnotations, Schema schemaAnnotation)Schema.SchemaResolutiongetSchemaResolution()protected booleanhasHiddenAnnotation(com.fasterxml.jackson.databind.introspect.Annotated annotated)protected booleanhiddenByJsonView(Annotation[] annotations, AnnotatedType type)protected booleanignore(com.fasterxml.jackson.databind.introspect.Annotated member, XmlAccessorType xmlAccessorTypeAnnotation, String propName, Set<String> propertiesToIgnore)protected booleanignore(com.fasterxml.jackson.databind.introspect.Annotated member, XmlAccessorType xmlAccessorTypeAnnotation, String propName, Set<String> propertiesToIgnore, com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef)protected booleanisArraySchema(Schema schema)protected booleanisNumberSchema(Schema schema)protected booleanisObjectSchema(Schema schema)booleanisOpenapi31()protected booleanisStringSchema(Schema schema)com.fasterxml.jackson.databind.ObjectMapperobjectMapper()ModelResolveropenapi31(boolean openapi31)Schemaresolve(AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)protected Stringresolve$anchor(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Stringresolve$comment(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Stringresolve$dynamicAnchor(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Stringresolve$schema(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Stringresolve$vocabulary(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Schema.AccessModeresolveAccessMode(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef, com.fasterxml.jackson.databind.JavaType type, Schema schema)protected List<String>resolveAllowableValues(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected StringresolveConst(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected voidresolveContains(AnnotatedType annotatedType, ArraySchema arraySchema, ArraySchema arraySchemaAnnotation)protected StringresolveContentEncoding(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected StringresolveContentMediaType(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected ObjectresolveDefaultValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Map<String,List<String>>resolveDependentRequired(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Map<String,Schema>resolveDependentSchemas(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)protected Map<String,Schema>resolveDependentSchemas(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation, boolean openapi31)protected BooleanresolveDeprecated(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected StringresolveDescription(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected DiscriminatorresolveDiscriminator(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context)protected voidresolveDiscriminatorProperty(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context, Schema model)protected ObjectresolveExample(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BooleanresolveExclusiveMaximum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BigDecimalresolveExclusiveMaximumValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BooleanresolveExclusiveMinimum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BigDecimalresolveExclusiveMinimumValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Map<String,Object>resolveExtensions(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Map<String,Object>resolveExtensions(AnnotatedType a, ArraySchema arraySchema)protected ExternalDocumentationresolveExternalDocumentation(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected ExternalDocumentationresolveExternalDocumentation(ExternalDocumentation externalDocumentation)protected StringresolveFormat(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected StringresolveId(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Set<String>resolveIgnoredProperties(com.fasterxml.jackson.databind.util.Annotations a, Annotation[] annotations)protected Set<String>resolveIgnoredProperties(Annotation[] annotations)protected IntegerresolveMaxContains(AnnotatedType a, ArraySchema arraySchema)protected BigDecimalresolveMaximum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected IntegerresolveMaxItems(AnnotatedType a, ArraySchema arraySchema)protected IntegerresolveMaxLength(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected IntegerresolveMaxProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected IntegerresolveMinContains(AnnotatedType a, ArraySchema arraySchema)protected BigDecimalresolveMinimum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected IntegerresolveMinItems(AnnotatedType a, ArraySchema arraySchema)protected IntegerresolveMinLength(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected IntegerresolveMinProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BigDecimalresolveMultipleOf(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected BooleanresolveNullable(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected StringresolvePattern(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Map<String,Schema>resolvePatternProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)protected Map<String,Schema>resolvePatternProperties(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context)protected Map<String,Schema>resolveProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)protected BooleanresolveReadOnly(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected Schema.RequiredModeresolveRequiredMode(Schema schema)protected List<String>resolveRequiredProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected voidresolveSchemaMembers(Schema schema, com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation)protected voidresolveSchemaMembers(Schema schema, AnnotatedType annotatedType)protected voidresolveSchemaMembers(Schema schema, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)protected Map<String,Schema>resolveSchemaProperties(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context)protected StringresolveTitle(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected voidresolveUnevaluatedItems(AnnotatedType annotatedType, ArraySchema arraySchema, ArraySchema arraySchemaAnnotation)protected BooleanresolveUniqueItems(AnnotatedType a, ArraySchema arraySchema)protected SchemaresolveWrapping(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context, Schema model)protected BooleanresolveWriteOnly(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)protected XMLresolveXml(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)ModelResolverschemaResolution(Schema.SchemaResolution schemaResolution)voidsetOpenapi31(boolean openapi31)voidsetSchemaResolution(Schema.SchemaResolution schemaResolution)protected booleanshouldIgnoreClass(Type type)-
Methods inherited from class io.swagger.v3.core.jackson.AbstractModelConverter
_findTypeName, _isSetType, _subTypeName, _typeName, _typeName, _typeQName
-
-
-
-
Field Detail
-
SET_PROPERTY_OF_COMPOSED_MODEL_AS_SIBLING
public static final String SET_PROPERTY_OF_COMPOSED_MODEL_AS_SIBLING
- See Also:
- Constant Field Values
-
SET_PROPERTY_OF_ENUMS_AS_REF
public static final String SET_PROPERTY_OF_ENUMS_AS_REF
- See Also:
- Constant Field Values
-
composedModelPropertiesAsSibling
public static boolean composedModelPropertiesAsSibling
-
enumsAsRef
public static boolean enumsAsRef
Allows all enums to be resolved as a reference to a scheme added to the components section.
-
-
Constructor Detail
-
ModelResolver
public ModelResolver(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
ModelResolver
public ModelResolver(com.fasterxml.jackson.databind.ObjectMapper mapper, TypeNameResolver typeNameResolver)
-
-
Method Detail
-
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
-
resolve
public Schema resolve(AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)
- Specified by:
resolvein interfaceModelConverter- Overrides:
resolvein classAbstractModelConverternext- the chain of model converters to try if this implementation cannot process- Returns:
- null if this ModelConverter cannot convert the given Type
-
findJsonValueType
protected Type findJsonValueType(com.fasterxml.jackson.databind.BeanDescription beanDesc)
-
_isOptionalType
protected boolean _isOptionalType(com.fasterxml.jackson.databind.JavaType propType)
-
_addEnumProps
protected void _addEnumProps(Class<?> propClass, Schema property)
Adds each enum property value to the model schema- Parameters:
propClass- the enum class for which to add propertiesproperty- the schema to add properties to
-
ignore
protected boolean ignore(com.fasterxml.jackson.databind.introspect.Annotated member, XmlAccessorType xmlAccessorTypeAnnotation, String propName, Set<String> propertiesToIgnore)
-
hasHiddenAnnotation
protected boolean hasHiddenAnnotation(com.fasterxml.jackson.databind.introspect.Annotated annotated)
-
ignore
protected boolean ignore(com.fasterxml.jackson.databind.introspect.Annotated member, XmlAccessorType xmlAccessorTypeAnnotation, String propName, Set<String> propertiesToIgnore, com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef)
-
getSchemaResolution
public Schema.SchemaResolution getSchemaResolution()
-
setSchemaResolution
public void setSchemaResolution(Schema.SchemaResolution schemaResolution)
-
schemaResolution
public ModelResolver schemaResolution(Schema.SchemaResolution schemaResolution)
-
applyBeanValidatorAnnotations
protected void applyBeanValidatorAnnotations(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef, Schema property, Annotation[] annotations, Schema parent, boolean applyNotNullAnnotations)
-
applyBeanValidatorAnnotations
protected void applyBeanValidatorAnnotations(Schema property, Annotation[] annotations, Schema parent, boolean applyNotNullAnnotations)
-
getComposedSchemaReferencedClasses
protected List<Class<?>> getComposedSchemaReferencedClasses(Class<?> clazz, Annotation[] ctxAnnotations, Schema schemaAnnotation)
-
resolveDescription
protected String resolveDescription(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveTitle
protected String resolveTitle(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveFormat
protected String resolveFormat(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolvePatternProperties
protected Map<String,Schema> resolvePatternProperties(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context)
-
resolveSchemaProperties
protected Map<String,Schema> resolveSchemaProperties(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context)
-
resolveDependentSchemas
protected Map<String,Schema> resolveDependentSchemas(com.fasterxml.jackson.databind.JavaType a, Annotation[] annotations, ModelConverterContext context, Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation, boolean openapi31)
-
resolveDefaultValue
protected Object resolveDefaultValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExample
protected Object resolveExample(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveRequiredMode
protected Schema.RequiredMode resolveRequiredMode(Schema schema)
-
resolveAccessMode
protected Schema.AccessMode resolveAccessMode(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef, com.fasterxml.jackson.databind.JavaType type, Schema schema)
-
resolveReadOnly
protected Boolean resolveReadOnly(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveNullable
protected Boolean resolveNullable(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMultipleOf
protected BigDecimal resolveMultipleOf(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMaxLength
protected Integer resolveMaxLength(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMinLength
protected Integer resolveMinLength(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMinimum
protected BigDecimal resolveMinimum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMaximum
protected BigDecimal resolveMaximum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExclusiveMinimum
protected Boolean resolveExclusiveMinimum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExclusiveMaximum
protected Boolean resolveExclusiveMaximum(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolvePattern
protected String resolvePattern(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMinProperties
protected Integer resolveMinProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveMaxProperties
protected Integer resolveMaxProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveRequiredProperties
protected List<String> resolveRequiredProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveWriteOnly
protected Boolean resolveWriteOnly(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExternalDocumentation
protected ExternalDocumentation resolveExternalDocumentation(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExternalDocumentation
protected ExternalDocumentation resolveExternalDocumentation(ExternalDocumentation externalDocumentation)
-
resolveDeprecated
protected Boolean resolveDeprecated(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveAllowableValues
protected List<String> resolveAllowableValues(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExtensions
protected Map<String,Object> resolveExtensions(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveDiscriminatorProperty
protected void resolveDiscriminatorProperty(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context, Schema model)
-
resolveWrapping
protected Schema resolveWrapping(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context, Schema model)
-
resolveDiscriminator
protected Discriminator resolveDiscriminator(com.fasterxml.jackson.databind.JavaType type, ModelConverterContext context)
-
resolveXml
protected XML resolveXml(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveIgnoredProperties
protected Set<String> resolveIgnoredProperties(com.fasterxml.jackson.databind.util.Annotations a, Annotation[] annotations)
-
resolveIgnoredProperties
protected Set<String> resolveIgnoredProperties(Annotation[] annotations)
-
resolveMinItems
protected Integer resolveMinItems(AnnotatedType a, ArraySchema arraySchema)
-
resolveMaxItems
protected Integer resolveMaxItems(AnnotatedType a, ArraySchema arraySchema)
-
resolveUniqueItems
protected Boolean resolveUniqueItems(AnnotatedType a, ArraySchema arraySchema)
-
resolveExtensions
protected Map<String,Object> resolveExtensions(AnnotatedType a, ArraySchema arraySchema)
-
resolveMaxContains
protected Integer resolveMaxContains(AnnotatedType a, ArraySchema arraySchema)
-
resolveMinContains
protected Integer resolveMinContains(AnnotatedType a, ArraySchema arraySchema)
-
resolveExclusiveMaximumValue
protected BigDecimal resolveExclusiveMaximumValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveExclusiveMinimumValue
protected BigDecimal resolveExclusiveMinimumValue(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveId
protected String resolveId(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolve$schema
protected String resolve$schema(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolve$anchor
protected String resolve$anchor(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolve$comment
protected String resolve$comment(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolve$vocabulary
protected String resolve$vocabulary(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolve$dynamicAnchor
protected String resolve$dynamicAnchor(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveContentEncoding
protected String resolveContentEncoding(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveContentMediaType
protected String resolveContentMediaType(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveContains
protected void resolveContains(AnnotatedType annotatedType, ArraySchema arraySchema, ArraySchema arraySchemaAnnotation)
-
resolveUnevaluatedItems
protected void resolveUnevaluatedItems(AnnotatedType annotatedType, ArraySchema arraySchema, ArraySchema arraySchemaAnnotation)
-
resolveConst
protected String resolveConst(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveDependentRequired
protected Map<String,List<String>> resolveDependentRequired(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schema)
-
resolveDependentSchemas
protected Map<String,Schema> resolveDependentSchemas(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)
-
resolvePatternProperties
protected Map<String,Schema> resolvePatternProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)
-
resolveProperties
protected Map<String,Schema> resolveProperties(com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)
-
resolveSchemaMembers
protected void resolveSchemaMembers(Schema schema, AnnotatedType annotatedType)
-
resolveSchemaMembers
protected void resolveSchemaMembers(Schema schema, AnnotatedType annotatedType, ModelConverterContext context, Iterator<ModelConverter> next)
-
resolveSchemaMembers
protected void resolveSchemaMembers(Schema schema, com.fasterxml.jackson.databind.introspect.Annotated a, Annotation[] annotations, Schema schemaAnnotation)
-
shouldIgnoreClass
protected boolean shouldIgnoreClass(Type type)
-
decorateModelName
protected String decorateModelName(AnnotatedType type, String originalName)
Decorate the name based on the JsonView
-
hiddenByJsonView
protected boolean hiddenByJsonView(Annotation[] annotations, AnnotatedType type)
-
openapi31
public ModelResolver openapi31(boolean openapi31)
-
isOpenapi31
public boolean isOpenapi31()
- Specified by:
isOpenapi31in interfaceModelConverter
-
setOpenapi31
public void setOpenapi31(boolean openapi31)
-
isObjectSchema
protected boolean isObjectSchema(Schema schema)
-
isArraySchema
protected boolean isArraySchema(Schema schema)
-
isStringSchema
protected boolean isStringSchema(Schema schema)
-
isNumberSchema
protected boolean isNumberSchema(Schema schema)
-
buildRefSchemaIfObject
protected Schema buildRefSchemaIfObject(Schema schema, ModelConverterContext context)
-
-