Skip to content

Missing extension to schema property #622

Closed
@raghuraman1

Description

@raghuraman1

Hi @bnasslahsen ,

Please see https://github.com/teq-niq/sample/tree/extending3
In the person schema for worth field am expecting a extension x-Currency with value USD.
I am trying to show using swagger extensions validation constraints that swagger or springdoc might not be showing. This includes even custom constraints.

In springdoc-openapi-webmvc-core\src\main\java\org\springdoc\webmvc\api\OpenApiResource.java I debugged this method - openapiJson()

I can see the extension with correct value in this object
OpenAPI openAPI = this.getOpenApi();

But the extension is missing in the api-docs json. The other extensions are all appearing properly.
problem

Attaching the json txt:
json.txt

Raghu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions