public class SpringDocAnnotationsUtils
extends io.swagger.v3.core.util.AnnotationsUtils
Constructor and Description |
---|
SpringDocAnnotationsUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addAnnotationsToIgnore(Class<?>... classes)
Add annotations to ignore.
|
static io.swagger.v3.oas.models.media.Schema |
extractSchema(io.swagger.v3.oas.models.Components components,
Type genericParameterType,
com.fasterxml.jackson.annotation.JsonView jsonView)
Extract schema schema.
|
static io.swagger.v3.oas.models.media.Schema |
extractSchema(io.swagger.v3.oas.models.Components components,
Type returnType,
com.fasterxml.jackson.annotation.JsonView jsonView,
Annotation[] annotations)
Extract schema schema.
|
static Optional<io.swagger.v3.oas.models.media.Content> |
getContent(io.swagger.v3.oas.annotations.media.Content[] annotationContents,
String[] classTypes,
String[] methodTypes,
io.swagger.v3.oas.models.media.Schema schema,
io.swagger.v3.oas.models.Components components,
com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
Gets content.
|
static boolean |
isAnnotationToIgnore(org.springframework.core.MethodParameter parameter)
Is annotation to ignore boolean.
|
static boolean |
isAnnotationToIgnore(Type type)
Is annotation to ignore boolean.
|
static void |
mergeSchema(io.swagger.v3.oas.models.media.Content existingContent,
io.swagger.v3.oas.models.media.Schema<?> schemaN,
String mediaTypeStr)
Merge schema.
|
static void |
removeAnnotationsToIgnore(Class<?>... classes)
Remove annotations to ignore.
|
static Object |
resolveDefaultValue(String defaultValueStr) |
static io.swagger.v3.oas.models.media.Schema |
resolveSchemaFromType(Class<?> schemaImplementation,
io.swagger.v3.oas.models.Components components,
com.fasterxml.jackson.annotation.JsonView jsonView,
Annotation[] annotations)
Resolve schema from type schema.
|
addEncodingToMediaType, applyTypes, equals, equals, equals, getAnnotation, getArraySchema, getArraySchema, getArraySchemaAnnotation, getContact, getExample, getExample, getExtensions, getExternalDocumentation, getHeader, getHeaders, getInfo, getLicense, getLink, getLinkParameters, getLinks, getSchema, getSchema, getSchemaAnnotation, getSchemaAnnotation, getSchemaAnnotation, getSchemaDeclaredAnnotation, getSchemaDeclaredAnnotation, getSchemaFromAnnotation, getSchemaFromAnnotation, getSchemaType, getSchemaType, getServer, getServers, getTags, hasArrayAnnotation, hasSchemaAnnotation, mergeArraySchemaAnnotations, mergeArrayWithSchemaAnnotation, mergeSchemaAnnotations, mergeSchemaAnnotations, removeAnnotations, resolveSchemaFromType, updateAnnotation
public static io.swagger.v3.oas.models.media.Schema resolveSchemaFromType(Class<?> schemaImplementation, io.swagger.v3.oas.models.Components components, com.fasterxml.jackson.annotation.JsonView jsonView, Annotation[] annotations)
schemaImplementation
- the schema implementationcomponents
- the componentsjsonView
- the json viewannotations
- the annotationspublic static io.swagger.v3.oas.models.media.Schema extractSchema(io.swagger.v3.oas.models.Components components, Type returnType, com.fasterxml.jackson.annotation.JsonView jsonView, Annotation[] annotations)
components
- the componentsreturnType
- the return typejsonView
- the json viewannotations
- the annotationspublic static io.swagger.v3.oas.models.media.Schema extractSchema(io.swagger.v3.oas.models.Components components, Type genericParameterType, com.fasterxml.jackson.annotation.JsonView jsonView)
components
- the componentsgenericParameterType
- the generic parameter typejsonView
- the json viewpublic static Optional<io.swagger.v3.oas.models.media.Content> getContent(io.swagger.v3.oas.annotations.media.Content[] annotationContents, String[] classTypes, String[] methodTypes, io.swagger.v3.oas.models.media.Schema schema, io.swagger.v3.oas.models.Components components, com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
annotationContents
- the annotation contentsclassTypes
- the class typesmethodTypes
- the method typesschema
- the schemacomponents
- the componentsjsonViewAnnotation
- the json view annotationpublic static void mergeSchema(io.swagger.v3.oas.models.media.Content existingContent, io.swagger.v3.oas.models.media.Schema<?> schemaN, String mediaTypeStr)
existingContent
- the existing contentschemaN
- the schema nmediaTypeStr
- the media type strpublic static boolean isAnnotationToIgnore(org.springframework.core.MethodParameter parameter)
parameter
- the parameterpublic static boolean isAnnotationToIgnore(Type type)
type
- the typepublic static void addAnnotationsToIgnore(Class<?>... classes)
classes
- the classespublic static void removeAnnotationsToIgnore(Class<?>... classes)
classes
- the classesCopyright © 2021. All rights reserved.