Skip to content

Conversation

@yelizhenden-mdb
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb commented Mar 27, 2025

Proposed changes

Replaces the check if a path belongs to a List method

!isResourceCollectionIdentifier(resourcePath) ||
    (isResourceCollectionIdentifier(resourcePath) && isSingletonResource(getResourcePathItems(resourcePath, oas.paths)))

with
!isResourceCollectionIdentifier(resourcePath) || isSingletonResource(getResourcePathItems(resourcePath, oas.paths)

Related discussion: #622 (comment)

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

@yelizhenden-mdb yelizhenden-mdb marked this pull request as ready for review March 27, 2025 11:50
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner March 27, 2025 11:50
@yelizhenden-mdb yelizhenden-mdb merged commit 044ed0a into main Mar 27, 2025
8 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the singleton-check-fix branch March 27, 2025 12:37
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