This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem where nested objects would appear empty
On production right now if there's a nested object in a form, it always get in the code sample even if the form values are not set: ``` --data '{"category":{}}' ``` This PR recursively removes empty objects from the form values so they do not get set when making the request. This problem was slightly exacerbated by #179 which auto applied default values from the form to the samples.
- Loading branch information
1 parent
70a2ac0
commit 0b760c3
Showing
2 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters