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(docs): move a few API doc comments to descriptions #15381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bencochran
Copy link

@bencochran bencochran commented Jan 16, 2025

Description

Previously, the doc comments were being used as the summaries, and thus were displayed as the “title” of these endpoints in the sidebar. To match the others, I added @ApiOperation, moving the comments to description and the method name to summary.

Right now, these descriptions are now repeated in the /** doc comments */ and the @ApiOperation. If y’all would prefer to just use @ApiOperation as the way to add method descriptions, happy to make that change too (in which case, we could drop the summarys here and let those be derived from the method name).

How Has This Been Tested?

  • Built documentation locally and manually verified

Screenshots (if appropriate):

Before After
Before After

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable (lol yeah)

@bencochran bencochran force-pushed the api-doc-summary-fixes branch from 8a59be6 to d1e740a Compare January 16, 2025 04:53
@bencochran bencochran changed the title Move a few API doc comments to descriptions fix(docs): move a few API doc comments to descriptions Jan 16, 2025
Copy link
Contributor

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

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

Thank you for catching this

@alextran1502
Copy link
Contributor

Can you run make open-api from the root of the project?

@bencochran
Copy link
Author

Yeah, didn’t realize dart docs were downstream of this as well. Fighting environment setup a bit, but I’ll update shortly.

Previously, the comments were being used as the summaries, and thus were
displayed as the “title” of these endpoints
@bencochran bencochran force-pushed the api-doc-summary-fixes branch from d1e740a to 2db70a8 Compare January 16, 2025 05:36
Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

I would argue that instead the site generator should rather use the operationId value. Have you looked into that? Is it possible to customize that?

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.

3 participants