Repository navigation
fix(ruleset): don't flag binary file-download responses as collections - #873
Merged
pyrooka merged 1 commit intoNov 4, 2026
Merged
Conversation
The ibm-collection-array-property rule runs against every 2xx GET response content schema. When a list-type operation also returns a binary file download (for example a PDF served as application/pdf, whose schema is `type: string, format: binary`), the rule expected that response to define a collection array property and emitted a false-positive warning. A binary response body is never a collection, so skip the check when the response schema is a binary schema. Adds a regression test. Signed-off-by: Fadhlaoui Raed <raed.fadhlaoui@hotmail.com>
fadhlaouir
force-pushed
the
fix/collection-array-property-binary-response
branch
from
November 4, 2026 14:26
31db7d5 to
b4a4d41
Compare
ibm-devx-sdk
pushed a commit
that referenced
this pull request
Nov 4, 2026
## @ibm-cloud/openapi-ruleset [1.33.17](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/openapi-ruleset@1.33.16...@ibm-cloud/openapi-ruleset@1.33.17) (2026-11-04) ### Bug Fixes * **ibm-collection-array-property:** don't flag binary file-download responses ([#873](#873)) ([cf5b383](cf5b383))
|
🎉 This PR is included in version 1.33.17 🎉 The release is available on Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.38.8 🎉 The release is available on Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.9.5 🎉 The release is available on Your semantic-release bot 📦🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #786
PR summary
Fixes a false positive in
ibm-collection-array-property. The rule runs against every 2xx GET response content schema, so a list-type operation that returns a binary file download — e.g. a PDF served asapplication/pdf, whose schema istype: string, format: binary— was incorrectly required to define a collection array property and emitted a warning.A binary response body is never a collection, so the rule now skips the check when the response schema is a binary schema. Includes a regression test covering a list operation whose response is a binary file download.
PR Checklist
General checklist
.secrets.baselinehas been updated as needednpm run update-utilitieshas been run if any files inpackages/utilities/srchave been updated