Skip to content

Conversation

@AyushShri
Copy link
Collaborator

@AyushShri AyushShri commented Oct 30, 2025

Prevent parameter.schema keys (e.g., deprecated) from becoming query params
AB-1584 https://postmanlabs.atlassian.net/browse/AB-1584

@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

integration test code coverage

Lines Statements Branches Functions
Coverage: 19%
19.21% (2045/10641) 13.4% (998/7445) 19.83% (235/1185)
Coverage Breakdown • (19%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files19.2113.419.8319.5 
report-only-changed-files is enabled. No files were changed in this commit :)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

unit test code coverage

Lines Statements Branches Functions
Coverage: 89%
89.21% (5831/6536) 80.92% (3830/4733) 93.68% (861/919)
Coverage Breakdown • (89%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files89.2180.9293.6889.34 
report-only-changed-files is enabled. No files were changed in this commit :)

// 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)) {
Copy link
Collaborator

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.

Image Image

@jatin3893 jatin3893 added the specification-collection-sync API Builder Initiative label Nov 3, 2025
@barshan23
Copy link
Collaborator

Closing this PR as this needs to be reworked. Will be raising a separate PR for this.

@barshan23 barshan23 closed this Nov 5, 2025
@barshan23 barshan23 deleted the feature/omit-schema branch November 5, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

specification-collection-sync API Builder Initiative

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants