Skip to content

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
@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