Skip to content

Data types

TypeSpec.OpenAPI

AdditionalInfo

Additional information for the OpenAPI document.

model TypeSpec.OpenAPI.AdditionalInfo

Properties

NameTypeDescription
title?stringThe title of the API. Overrides the @service title.
summary?stringA short summary of the API. Overrides the @summary provided on the service namespace.
version?stringThe version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).
termsOfService?urlA URL to the Terms of Service for the API. MUST be in the format of a URL.
contact?ContactThe contact information for the exposed API.
license?LicenseThe license information for the exposed API.

Contact

Contact information for the exposed API.

model TypeSpec.OpenAPI.Contact

Properties

NameTypeDescription
name?stringThe identifying name of the contact person/organization.
url?urlThe URL pointing to the contact information. MUST be in the format of a URL.
email?stringThe email address of the contact person/organization. MUST be in the format of an email address.

ExternalDocs

External Docs information.

model TypeSpec.OpenAPI.ExternalDocs

Properties

NameTypeDescription
urlstringDocumentation url
description?stringOptional description
unknownAdditional properties

License

License information for the exposed API.

model TypeSpec.OpenAPI.License

Properties

NameTypeDescription
namestringThe license name used for the API.
url?urlA URL to the license used for the API. MUST be in the format of a URL.

TagMetadata

Metadata to a single tag that is used by operations.

model TypeSpec.OpenAPI.TagMetadata

Properties

NameTypeDescription
description?stringA description of the API.
externalDocs?ExternalDocsAn external Docs information of the API.
unknownAdditional properties