The document’s info object contains information about the document, including fields like title, version, and description that help to identify the purpose and owner of the document.
Example:
Field
Type
String
Required
✅
Description
A name for the API contained within the document.
Type
String
Required
✅
Description
The version of this OpenAPI document, not the version of the API or the OpenAPI Specification used. This is recommended to be a Semantic Version .
Type
String
Required
Description
(Available in OpenAPI 3.1.x ONLY)A short sentence summarizing the API contained with the document.
Type
String
Required
Description
A longer description of the API contained within the document. This may contain CommonMark syntax to provide a rich description.
Any number of extension fields can be added to the info object that can be used by tooling and vendors to add additional metadata and functionality to the OpenAPI Specification.
Field
Type
Required
Description
String
✅
A name for the API contained within the document.
String
✅
The version of this OpenAPI document, not the version of the API or the OpenAPI Specification used. This is recommended to be a Semantic Version .
String
(Available in OpenAPI 3.1.x ONLY)A short sentence summarizing the API contained with the document.
String
A longer description of the API contained within the document. This may contain CommonMark syntax to provide a rich description.
Any number of extension fields can be added to the info object that can be used by tooling and vendors to add additional metadata and functionality to the OpenAPI Specification.
The above order of fields is recommended (but is not required by the OpenAPI specification) as it puts the most important information first and allows the reader to get a quick overview of the document and API.
Contact Object in OpenAPI
Contact information for the maintainer of the API.
Field
Type
String
Required
Description
The name of a contact that could be approached, for example, for support.
Type
String
Required
Description
A URL to a website or similar providing contact information.