Skip to content

CustomResolver's Results get overwritten by default ModelResolver #4905

Open
@alaturoz

Description

@alaturoz

I am experiencing an issue while trying to add a Custom ModelResolver to the Model Resolving Process. As described in https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Extensions#extending-core-resolver I extend the ModelResolver Class and override the "resolveDescription" Method to create a custom Description for some Schema's.

Problem:
When adding a Custom Resolver that returns a custom description (Originial Description in the Annotation + Custom Part) for some Schema's. The Custom Description is Overwritten because of reResolving in the default ModelResolver (See

Optional<Schema> reResolvedProperty = AnnotationsUtils.getSchemaFromAnnotation(ctxSchema, annotatedType.getComponents(), null, openapi31, property, schemaResolution, context);
)

Is this intended? Is there a way to Customize Description Resolving ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions