Skip to content

ExtensionProperty missing in JSON #1523

@Inge72

Description

@Inge72

The ExtensionProperty is missing in JSON when placed inside the ApiOperation tag.

Example:

@apioperation(value = "Returns a greeting for the specified user.",
notes = "Returns a greeting for the specified user based on the given parameters.",
response = Greeting.class,
extensions = {
@extension(properties = {
@ExtensionProperty(name = "externalPath", value = "/hello-world/v1/{endUserId}")
})})

I would expect to find "x-externalPath": "/hello-world/v1/{endUserId}" in the JSON file, but it is missing.

This has been tested with version 1.5.4 of swagger-jersey2-jaxrs.
Note: It works fine for ExtensionProperty placed in @SwaggerDefinition@Info.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions