Skip to content

Conversation

@blva
Copy link
Collaborator

@blva blva commented Mar 14, 2025

Proposed changes

  • We are filtering out the x-xgen-changelog extension after splitting specs, but that entry should be kept for the changelog generation.
  • CLOUDP-305830

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

Further comments

"DigestAuth": []
}
],
"x-xgen-changelog": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cleaning up x-xgen-changelog in most tests, but adding it to one of the endpoints

@blva blva marked this pull request as ready for review March 14, 2025 16:02
@blva blva requested a review from a team as a code owner March 14, 2025 16:02
@blva blva changed the title fix: stop filtering x-xgen-changelog from versioned files CLOUDP-305830: stop filtering x-xgen-changelog from versioned files Mar 14, 2025
Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM

for _, operation := range pathItem.Operations() {
if operation.Extensions != nil {
delete(operation.Extensions, "x-xgen-owner-team")
delete(operation.Extensions, "x-xgen-changelog")
Copy link
Collaborator

@andreaangiolillo andreaangiolillo Mar 18, 2025

Choose a reason for hiding this comment

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

is this line the fix? Do we plan to include this extension for all the specs? I am wondering if we should keep it only for the latest API version spec but not strong opinion

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, and I plan to keep it in all specs, I added the removal then caused a regression

@blva blva merged commit 3fb6ddd into main Mar 18, 2025
11 checks passed
@blva blva deleted the changelog-manual-entries branch March 18, 2025 11:20
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