Skip to content
New issue

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

[Bug]: Array parameter isn't autogenerated with MapQueryString #2409

Open
Thomerdos opened this issue Dec 12, 2024 · 0 comments
Open

[Bug]: Array parameter isn't autogenerated with MapQueryString #2409

Thomerdos opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@Thomerdos
Copy link

Version

4.33.4

Description

I'm running the following code

<?php

namespace App\Query;

class SingleCaisseLocaleQuery
{
    public int $test;

    public array $nums = [];
}
public function getCaisseLocale(Request $request, #[MapQueryString] SingleCaisseLocaleQuery $filters): array

In the generated OpenApi doc the test parameter is generated but not the nums one.

JSON OpenApi

JSON OpenApi
 "parameters": [
    {
        "name": "test",
        "in": "query",
        "required": false,
        "schema": {
            "type": "integer"
        }
    }
],

Additional context

No response

@Thomerdos Thomerdos added the bug label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant