import type { ContactObject } from './contact.js'
import type { LicenseObject } from './license.js'
/**
 * Info object
 *
 * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
 *
 * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.2.0.md#info-object}
 */
export type InfoObject = {
  /** **REQUIRED**. The title of the API. */
  title: string
  /** A short summary of the API. */
  summary?: string
  /** A description of the API. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. */
  description?: string
  /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */
  termsOfService?: string
  /** The contact information for the exposed API. */
  contact?: ContactObject
  /** The license information for the exposed API. */
  license?: LicenseObject
  /** **REQUIRED**. The version of the OpenAPI document (which is distinct from the [OpenAPI Specification version](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.2.0.md#oas-version) or the version of the API being described or the version of the OpenAPI Description). */
  version: string
} & Record<`x-${string}`, unknown>
