Skip to content

Conversation

@lovisaberggren
Copy link
Collaborator

@lovisaberggren lovisaberggren commented Mar 31, 2025

Proposed changes

Updates IPA rule xgen-IPA-117-plaintext-response-must-have-example to ignore file types. Added a test to cover case.

Jira ticket: CLOUDP-306573

@lovisaberggren lovisaberggren marked this pull request as ready for review March 31, 2025 11:54
@lovisaberggren lovisaberggren requested a review from a team as a code owner March 31, 2025 11:54
function: 'IPA117PlaintextResponseMustHaveExample'
functionOptions:
allowedTypes: ['json', 'yaml']
allowedTypes: ['json', 'yaml', 'gzip']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Instead of adding it as gzip, how about checking if the schema format is binary and ignoring them accordingly? That way, we wouldn't need to list all future possible binary media types

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that's a good idea. It'll ignore other filetypes if there would be new ones in the future

Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@lovisaberggren lovisaberggren merged commit 461762a into main Mar 31, 2025
8 checks passed
@lovisaberggren lovisaberggren deleted the CLOUDP-306573 branch March 31, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants