We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.28.0
Referencing a parameter defined in components duplicates the parameter in the rendered output.
* @Nelmio\Operation( * @OA\Parameter(ref="#/components/parameters/limit"), * ... * * @FOS\RestBundle\Controller\Annotations\QueryParam(name="limit", requirements="[1-9]\d*", description="Limit", default="20", strict=true)
# config/nelmio_api_doc.yaml nelmio_api_doc: documentation: components: parameters: limit: name: limit in: query example: 20 description: "How many entries per page?" schema: type: integer
Compared to this case where there is no duplication:
@OA\Parameter(name="limit", in="query", description="How many entries per page?", required=false, @OA\Schema(type="string")),
Seems similar to the problems described in #1739 and #1407
The error does not happen on parameters of in: path
in: path
The text was updated successfully, but these errors were encountered:
Could you share your openapi docs in json?
Sorry, something went wrong.
@OA\Parameter(ref="#/components/parameters/pagination--limit"), @OA\Parameter(name="page", in="query", description="Which page?", required=false, @OA\Schema(type="string")), @OA\Parameter(ref="#/components/parameters/channel-id"), @OA\Parameter(ref="#/components/parameters/version"),
"parameters": [ { "$ref": "#/components/parameters/pagination--limit" }, { "name": "page", "in": "query", "description": "Which page?", "required": true, "allowEmptyValue": false, "schema": { "type": "string", "default": "1", "pattern": "\\d+" } }, { "$ref": "#/components/parameters/channel-id" }, { "$ref": "#/components/parameters/version" }, { "name": "limit", "in": "query", "description": "Limit", "required": true, "allowEmptyValue": false, "schema": { "type": "string", "default": "20", "pattern": "\\d+" } } ],
No branches or pull requests
Version
4.28.0
Description
Referencing a parameter defined in components duplicates the parameter in the rendered output.
working alternative
Compared to this case where there is no duplication:
Additional context
Seems similar to the problems described in #1739 and #1407
The error does not happen on parameters of
in: path
The text was updated successfully, but these errors were encountered: