-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
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.