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
{:doc"List containers\nReturns a list of containers. For details on the format, see [the inspect endpoint](#operation/ContainerInspect).\n\nNote that it uses a different, smaller representation of a container than inspecting a single container. For example,\nthe list of linked containers is not propagated .\n",
:params
({:name"all", :type"boolean"}
{:name"limit", :type"integer"}
{:name"size", :type"boolean"}
{:name"filters", :type"string"})}
... filters is string, but maybe this could be handled differently?
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue and this is a valid one as filters are something that are used often.
The idea was to keep the client as simple as possible and not put layers in between the user and docker, cases like this warrant some form of translation. Some of the ideas I can think of the top of my head:
Have an interceptor/middleware like thing for the requests which transform values before sending and after receiving
Have provisons of passing custom updater/transformer fns to invoke when calling
Supply helpers (this is something I'm not in favor of as this makes the lib carry opinions which may not be useful to all)
I would like to know what you would think of as a nice solution to this? I am totally open to any suggestions and would really wanna make this even more approachable and useful 😄
Supplying helpers is not very great idea indeed, with the reason you pointed out. I'd rule that option out completely.
First two are okay, perhaps 2nd one is the easiest to implement currently and would be sufficient. But I'd like to look into the first option as well. How would that look like?
While this makes kind of sense, because...
...
filters
is string, but maybe this could be handled differently?The text was updated successfully, but these errors were encountered: