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
I think it would be great if there could be a setting to switch the query location behavior to be comma separated rather than array based.
<?php $description = [ 'operations' => [ 'GetData' => [ 'httpMethod' => 'GET', 'responseModel' => 'getResponse', 'parameters' => [ 'ids' => [ 'type' => 'array', 'location' => 'query' ] ] ] ], 'models' => [ 'getResponse' => [ 'type' => 'object', 'additionalProperties' => [ 'location' => 'json' ] ] ] ];
It would be nice to be able to do something like this
$client = new Client(); $client->GetData(['ids' => ['one', 'two']]);
This would output ?ids=one,two
?ids=one,two
The text was updated successfully, but these errors were encountered:
Hi @oste,
reference: Parameter schema please try the filters property below, this works for me :-D
filters
"GetData": { "httpMethod": "GET", "responseModel": "getResponse", "parameters": { "ids": { "filters": [ { "args": [ ",", "@value" ], "method": "implode" } ], "location": "query", "type": "array" } } }
Chris Lin
Sorry, something went wrong.
cool, this works!
No branches or pull requests
I think it would be great if there could be a setting to switch the query location behavior to be comma separated rather than array based.
It would be nice to be able to do something like this
This would output
?ids=one,two
The text was updated successfully, but these errors were encountered: