Adding nested object support for deepObject style #1450
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding deepObject query parameters serialisation and fix error when a value was null in the object
Description
Created a function to transform the object pass as deepObject stype to query parameters, it uses the same style serialisation as before.
Motivation and Context
My company is using this style of GET method to make filtered query, it seems that many REST API use this method as well to benefit from cache and such. I've read the post such as #1385 and i know that you are talking about asking people from the draft to change this but i know a lot of people are already using this style so i thought i'll just contribute the code that worked for me.
Just like people use nutella to make ice cream instead of just their bread like the picture i suppose it is fine to let them use nested object in their get if they want this :x
How Has This Been Tested?
Started using it in our production environement
Screenshots (if appropriate):
Types of changes
package.json
)Checklist: