-
Notifications
You must be signed in to change notification settings - Fork 226
Feature/omit schema #892
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
Feature/omit schema #892
Conversation
libV2/schemaUtils.js
Outdated
| // Objects: emit all keys except those that are schema definition keys | ||
| const schemaKeys = Object.keys(_.get(param, 'schema', {})); | ||
| _.forEach(paramValue, (value, key) => { | ||
| if (schemaKeys.includes(key)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case there are properties in the query param that matches the schema, with this current change those properties will not show up in the collection.
Check out the screenshot
The schema contains type and minimum but since the schema also has type defined. The generated request only contains minimum and type was omitted from the request query param.
|
Closing this PR as this needs to be reworked. Will be raising a separate PR for this. |
Prevent parameter.schema keys (e.g., deprecated) from becoming query params
AB-1584 https://postmanlabs.atlassian.net/browse/AB-1584