Skip to content

@ExtensionProperty is not generated without @Operation #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wutzebaer opened this issue Jan 22, 2020 · 1 comment
Closed

@ExtensionProperty is not generated without @Operation #368

wutzebaer opened this issue Jan 22, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@wutzebaer
Copy link

When i define
@ApiResponse(content = @Content(schema = @Schema(type = "file")), extensions = @Extension(properties = @ExtensionProperty(name = "x-is-file", value = "true")))

grafik

the x-is-file is missing, but when i wrap it in an operation, it gets rendered:

@Operation(responses = @ApiResponse(content = @Content(schema = @Schema(type = "file")), extensions = @Extension(properties = @ExtensionProperty(name = "x-is-file", value = "true"))))

grafik

which is annoying because i have an custom annotation which includes an @operation definition

@bnasslahsen
Copy link
Collaborator

Yes @wutzebaer. Extensions were only supported using @Operation.
The support for extensions on @ApiResponse, will be available on the next release.

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants