Skip to content

Data types

Additional information for the OpenAPI document.

model TypeSpec.OpenAPI.AdditionalInfo
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.
unknownAdditional properties

Contact information for the exposed API.

model TypeSpec.OpenAPI.Contact
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.
unknownAdditional properties

External Docs information.

model TypeSpec.OpenAPI.ExternalDocs
NameTypeDescription
urlstringDocumentation url
description?stringOptional description
unknownAdditional properties

License information for the exposed API.

model TypeSpec.OpenAPI.License
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.
unknownAdditional properties

Metadata to a single tag that is used by operations.

model TypeSpec.OpenAPI.TagMetadata
NameTypeDescription
description?stringA description of the tag.
externalDocs?ExternalDocsExternal documentation information for the tag.
parent?stringThe name of a tag that this tag is nested under. Only supported in OpenAPI 3.2. For 3.0 and 3.1, this will be converted to x-parent.
summary?stringA short summary of the tag, used for display purposes. Only supported natively in OpenAPI 3.2. For 3.0 and 3.1, this will be emitted as x-oai-summary.
kind?stringA machine-readable string to categorize what sort of tag it is. Any string value can be used. Only supported natively in OpenAPI 3.2. For 3.0 and 3.1, this will be emitted as x-oai-kind.
unknownAdditional properties

Metadata for a tag that includes the name of the tag. Used with the array form of @tagMetadata.

model TypeSpec.OpenAPI.TagMetadataWithName
NameTypeDescription
namestringThe name of the tag.
description?stringA description of the tag.
externalDocs?ExternalDocsExternal documentation information for the tag.
parent?stringThe name of a tag that this tag is nested under. Only supported in OpenAPI 3.2. For 3.0 and 3.1, this will be converted to x-parent.
summary?stringA short summary of the tag, used for display purposes. Only supported natively in OpenAPI 3.2. For 3.0 and 3.1, this will be emitted as x-oai-summary.
kind?stringA machine-readable string to categorize what sort of tag it is. Any string value can be used. Only supported natively in OpenAPI 3.2. For 3.0 and 3.1, this will be emitted as x-oai-kind.
unknownAdditional properties