-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
If we have a lot of query parameters, we getting code like this:
sportApiFetch(
CompetitionsApiFp({
authorization: `Bearer ${token}`,
}).getV2Competitions(
undefined,
undefined,
areaId,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
sportId,
undefined,
undefined,
),
);
There are problems when:
- somebody add new param to openapi
- we reading this code without autocompletion from IDE
I prefer to use objects to pass query parameters instead of positioned arguments, can we add flag that will change this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels