-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
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
Pass custom parameters to qs
#453
Comments
I agree with him. |
I created a fork that uses a new parameter: Could or shoud it be considered as a PR? I had parsing inconsistencies when using with Datatables Editor until I found out is was something that could be configured using For instance, DT Editor by default uses an id, which is usually an integer, to identify objects and because of default array options in
But with a higher id number:
So it can result in an array or a plain object depending on the value of the number because the default limit for parsing an array is 100; above that threshold, it's parsed to an object. In this case it's preferable to set |
@dougwilson, have there been any new thoughts on the idea of passing parameters to |
This is really the same as #98 but that issue has been locked. The original rational for not adding the ability to pass configuration parameters to
qs
was that package was abandoned. That is no longer the case andqs
is now actively maintained. As such, I wonder if we might be able to revisit the original request and decision as that ability would be really useful.Also released is #203 requesting support for custom parsers. That issue is perhaps less important since
qs
is maintained again?The reason I'd like to see this, is that if I submit something like
l-2[].dp-1
then the parameter inreq.body
is alwaysl-2
regardless of what follows the[].
(I think the same applies with just a.
) due to the lack of support being able to setallowDots
inqs
.The text was updated successfully, but these errors were encountered: