OpenApiInfo

data class OpenApiInfo(val title: String, val version: String, val description: String? = null, val termsOfService: String? = null, val contact: OpenApiInfo.Contact? = Contact(), val license: OpenApiInfo.License? = null, val extensions: ExtensionProperties? = null) : Extensible(source)

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.

Report a problem

Constructors

Link copied to clipboard
constructor(title: String, version: String, description: String? = null, termsOfService: String? = null, contact: OpenApiInfo.Contact? = Contact(), license: OpenApiInfo.License? = null, extensions: ExtensionProperties? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Contact(val name: String? = null, val url: String? = null, val email: String? = null)

Contact information for the exposed API.

Link copied to clipboard
data class License(val name: String, val url: String? = null, val identifier: String? = null)

License information for the exposed API.

Properties

Link copied to clipboard

The contact information for the exposed API.

Link copied to clipboard

A short description of the API. CommonMark syntax MAY be used for rich text representation.

Link copied to clipboard
open override val extensions: ExtensionProperties?

Any additional external documentation for this OpenAPI document.

Link copied to clipboard

The license information for the exposed API.

Link copied to clipboard

A URL to the Terms of Service for the API. MUST be in the format of a URL.

Link copied to clipboard

The title of the API.

Link copied to clipboard

The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).