-
-
Notifications
You must be signed in to change notification settings - Fork 202
Closed
Description
The following annotation on a method in a controller for Parameters
public Map<String, Object> getUser(
@Parameter(description = "The user ID", required = true) @PathParam String id,
@Parameter(description = "Flag for fetching active/inactive users. (Defaults to true if not provided)") @QueryParam Boolean activeOnly)
yields the following yaml file which is missing the first @Parameter and assigned the second on to the first attribute
/public-api/user/{id}:
get:
tags:
- User
summary: Find a user by ID
description: Finds a user by ID or throws a 404
operationId: getUser
parameters:
- name: id
in: path
description: Flag for fetching active/inactive users. (Defaults to true if
not provided)
required: true
schema:
type: string
- name: activeOnly
in: query
schema:
type: boolean
...