Closed aksbenz closed 5 years ago
I'm not exactly sure, but my guess is that you'd want to use the toJSON() method on the collection object and then call JSON.stringify on the result of that.
@kamalaknn runtime should now do disabled support check within itself and property list could help in filtering that out. Maybe schedule in next release.
This is planned for runtime v8.
@codenirvana - is the initiative around handling disabled properties taking care of this?
@aksbenz can you confirm if this still persists with the latest version of the postman-collection
? Also, try using JSON.stringify(myCollection.toJSON(), null, 2)
;
Closing because of inactivity.
I load a collection into collection object using:
// Do some manipulations and export
The original request has some disabled parameters, but in the exported collection, the URL has all the parameters. Even without exporting when using this Collection object as a parameter to newman api (options.collection), all the requests made by newman include disabled parameters. Due to this I am unable to use newman api with Collection object, since I need to modify collections before running them.
If I do this with newman, it executes the request with disabled parameters:
Original Collection:
Exported Collection: