Skip to content

allowEmptyValue and allowReserved are specified for path parameters #7212

Open
@robjenman

Description

@robjenman

API Platform version(s) affected: 4.1.15

Description
Some spec readers will throw an error on allowEmptyValue as its present on a path parameter when the spec says:

This field is valid only for query parameters. Use of this field is NOT RECOMMENDED, and it is likely to be removed in a later revision.

You can't remove the parameter using the decorator either I don't think.

"parameters": [ { "name": "code", "in": "path", "description": "GiftCard identifier", "required": true, "deprecated": false, "allowEmptyValue": false, "schema": { "type": "string" }, "style": "simple", "explode": false, "allowReserved": false } ],

How to reproduce
Appears on all path parameters I've created so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions