Skip to main content
Version: Next 🚧

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.

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.