Skip to content

Add a clear overview of summary vs description #130

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

Conversation

lornajane
Copy link
Collaborator

Fixes #129 after we talked about these two fields in a TDC meeting.

@lornajane lornajane linked an issue May 24, 2025 that may be closed by this pull request
Copy link
Member

@karenetheridge karenetheridge left a comment

Choose a reason for hiding this comment

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

LGTM!

Many objects support both `summary` and `description` fields, and this is especially useful where documentation or other tools might show items in either list or detail view.

- `summary` is used for list view, and should be kept short. A single-sentence summary works well.
- `description` is shown when the item is being viewed in detail. The descriptions support markup and give you space to include as much information for your users as you want to. Don't be afraid to add paragraph breaks, links, or even bullet lists in these fields.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would be tempted to make this more determistic from the perspective of what Markdown supports i.e.

"CommonMark supports formatted text, so their is an opportunity to provide extensive, explanatory text in the description property that can be rendered by tools that support OpenAPI."

And then break into "do not..."

Doing this sets the constraints of the language, before providing advice on best practice.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm happy to edit, but we're already going on a lot about the actual markdown aspect in this article. I am mostly trying to explain how the fields are used, since that information wasn't clear.

@ralfhandl ralfhandl requested a review from a team May 29, 2025 09:43
@lornajane
Copy link
Collaborator Author

I'm merging rather than abandoning as I'm not really sure how to make the suggested changes. Let's track further amendments in an issue/

@lornajane lornajane merged commit 3c01e3e into OAI:main Jun 1, 2025
@lornajane lornajane deleted the 129-new-article-best-practices-for-summary-and-description branch June 1, 2025 08: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.

new article: best practices for "summary" and "description"
4 participants