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 · 1 comment
Open

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

Thomerdos opened this issue Dec 12, 2024 · 1 comment
Labels
bug stale stale issue/PR

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
Copy link

This issue has been marked as stale because it has not had any activity for 60 days. Remove stale label or comment to prevent this from being closed in 21 days.

@github-actions github-actions bot added the stale stale issue/PR label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale stale issue/PR
Projects
None yet
Development

No branches or pull requests

1 participant