You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This expects, by default, to have a filter[filter_name] style URL parameter for searching.
I have the following specs:
Endpoint:
/api/integration-contacts:
get:
tags:
- external
summary: Gets a list of contacts in the system
operationId: ListContacts
description: |
Searches all contacts in the system
parameters:
- in: query
name: filter
schema:
$ref: '#/components/schemas/UserIntegrationSettingsContactsFilter'
responses:
'200':
description: search results matching criteria
content:
application/json:
schema:
$ref: '#/components/schemas/UserIntegrationSettingsContact'
But in your example you and your library expected value is style: deepObject and it's not described in parameter style in the example that you provided. (!)
Another problem that openapi-client-axios is currently is not support another values than form for parameter style, but allow you to pass to axiosConfigDefaults an paramsSerializer to handle different cases.
I tried to fix it but couldn't find a graceful way to realize it fast in current library architecture, it passes parameters for serialization on shoulders of 'axios' itself and styles can be mixed for between methods and params also.
So possible better you can change expected params style on your library config.
@anttiviljami, looks like it should be marked as enchantment.
Hello, I am struggling a bit to get this to work. I am using the following PHP package to make filters:
https://github.com/spatie/laravel-query-builder
This expects, by default, to have a
filter[filter_name]
style URL parameter for searching.I have the following specs:
Endpoint:
Filter:
I have the following action:
Where the
filter
parameter is equal to:This produces the following URL:
http://api.my-url.local/api/integration-contacts?filter=%5Bobject%20Object%5D
The expected url is:
http://api.my-url.local/api/integration-contacts?filter[user_integration_settings_id]=someuuid
Any advice on how to get this to work?
The text was updated successfully, but these errors were encountered: