Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(OpenAPI): Fix duplicate status code definitions #294

Merged

Conversation

provokateurin
Copy link
Contributor

The duplicate definitions of Http::STATUS_OK were causing issues in the spec (yes openapi-extractor should throw errors in these cases; old incomplete pr pending at nextcloud/openapi-extractor#92).
For some reason psalm got really confused here and just doing ?CospendMember or CospendMember|null didn't work so the rest of the code had to be adjusted. I also simplified the handling by returning null instead of an empty array if the member was deleted (which I think also helped psalm to understand what is going on).

Copy link
Owner

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

👍

@julien-nc julien-nc merged commit 45daae0 into julien-nc:main Aug 18, 2024
12 checks passed
@provokateurin provokateurin deleted the fix/openapi/duplicate-status-codes branch August 18, 2024 16:53
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