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
Is your feature request related to a problem? Please describe.
In our scenario, we have an API server (which is available only internally) and a gateway service supporting frontend app. This way, we keep server side rendering on a node app, a business logic (fetching data from multiple APIs, etc) and number of APIs behind it.
Few API endpoints take a number of parameters that allow us to control the responses - think search page on any shop - you'll have search term, min and max price, category, etc.
Given the API spec, we (the client) know what we params we support, however should the API change, we still need to map params from incoming request to params in the API client. It would be nice, if we could use the struct to automatically map matching params.
Describe the solution you'd like
We would like to have tags set on each params struct.
For example, this is a struct that we have now (shortened it for clarity):
Describe alternatives you've considered
The obvious alternative is to map the fields manually. If we do that, we also lose the advantage of using a client like swag, because updating API version still requires manual effort.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In our scenario, we have an API server (which is available only internally) and a gateway service supporting frontend app. This way, we keep server side rendering on a node app, a business logic (fetching data from multiple APIs, etc) and number of APIs behind it.
Few API endpoints take a number of parameters that allow us to control the responses - think search page on any shop - you'll have search term, min and max price, category, etc.
Given the API spec, we (the client) know what we params we support, however should the API change, we still need to map params from incoming request to params in the API client. It would be nice, if we could use the struct to automatically map matching params.
Describe the solution you'd like
We would like to have tags set on each params struct.
For example, this is a struct that we have now (shortened it for clarity):
while this is something that we would expect - the tag is just example.
Describe alternatives you've considered
The obvious alternative is to map the fields manually. If we do that, we also lose the advantage of using a client like swag, because updating API version still requires manual effort.
The text was updated successfully, but these errors were encountered: