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

feat(OpenApiType): Support comments in object array types #221

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

provokateurin
Copy link
Member

@provokateurin provokateurin commented Mar 5, 2025

Closes #10.

I also tried comments at the end of the line, but those are completely ignored and do not appear in the parser output. I'm not sure if this is a phpdoc-parser bug or not, but having the option to set any comments at all is much better than having it not.
Also adding comments in front of a type alias doesn't work either, so it's not possible yet to set the description of an entire schema.

Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin force-pushed the feat/openapitype/object-comments branch from b759d54 to bbfa4cb Compare March 5, 2025 12:30
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

🥹

@provokateurin provokateurin merged commit 3ef7c03 into main Mar 5, 2025
16 of 19 checks passed
@provokateurin provokateurin deleted the feat/openapitype/object-comments branch March 5, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support inline comments in types
2 participants