Open ghost opened 3 years ago
The swagger maven plugin doesn't adhere to the parseValue flag in the ExtensionProperty annotation. The docs suggest the following:
parseValue
ExtensionProperty
If set to true, field value will be parsed and serialized as JSON/YAML
value
API definition
@ApiOperation(value = "create a user", response = User.class, extensions = { @Extension(name = "x-authorities", properties = { @ExtensionProperty(name = "roles", value = "[\"user_create\", \"user_admin\"]", parseValue = true) }) })
But when the final extension property is rendered it is a string in the swagger.json file.
"x-authorities": { "roles": "[\"user_create\", \"user_admin\"]" }
Is this the intended behavior or am I missing something while configuring the plugin?
The swagger maven plugin doesn't adhere to the
parseValue
flag in theExtensionProperty
annotation. The docs suggest the following:API definition
But when the final extension property is rendered it is a string in the swagger.json file.
Is this the intended behavior or am I missing something while configuring the plugin?