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

Update summary field name to description in info objects #275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChristopheDujarric
Copy link

This PR updates summary field names to description in info objects.

The OpenAPI specification indeed specifies:

Field Name Type Description
summary string A short summary of the API.
description string A description of the API. CommonMark syntax MAY be used for rich text representation.

As multiple current summary fields include Markdown descriptions, this change makes it possible to nicely render the definition file in standard vendor tooling on the market. Example: https://bump.sh/christophedujarric/doc/openai

@benadamdev
Copy link

@ChristopheDujarric https://bump.sh/christophedujarric/doc/openai is nothing short of a piece of art. I wish all API references were as clean and beautiful this one.

@paulRbr
Copy link

paulRbr commented Jun 6, 2024

@ChristopheDujarric I've sent you a PR to your branch with another commit renaming the existing Operation#x-oaiMeta.name properties to the OpenAPI specified Operation#summary which will help to have some better titles in your generated documentation :)

@ChristopheDujarric
Copy link
Author

Thanks @paulRbr !

x-oaiMeta:
name: Create chat completion
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't remove x-oai things

Copy link

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

thanks @rattrayalex and @paulRbr !

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.

4 participants