Data types
TypeSpec.OpenAPI
Section titled “TypeSpec.OpenAPI”AdditionalInfo
Section titled “AdditionalInfo”Additional information for the OpenAPI document.
model TypeSpec.OpenAPI.AdditionalInfoProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| title? | string | The title of the API. Overrides the @service title. |
| summary? | string | A short summary of the API. Overrides the @summary provided on the service namespace. |
| version? | string | The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version). |
| termsOfService? | url | A URL to the Terms of Service for the API. MUST be in the format of a URL. |
| contact? | Contact | The contact information for the exposed API. |
| license? | License | The license information for the exposed API. |
unknown | Additional properties |
Contact
Section titled “Contact”Contact information for the exposed API.
model TypeSpec.OpenAPI.ContactProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name? | string | The identifying name of the contact person/organization. |
| url? | url | The URL pointing to the contact information. MUST be in the format of a URL. |
| email? | string | The email address of the contact person/organization. MUST be in the format of an email address. |
unknown | Additional properties |
ExternalDocs
Section titled “ExternalDocs”External Docs information.
model TypeSpec.OpenAPI.ExternalDocsProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| url | string | Documentation url |
| description? | string | Optional description |
unknown | Additional properties |
License
Section titled “License”License information for the exposed API.
model TypeSpec.OpenAPI.LicenseProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name | string | The license name used for the API. |
| url? | url | A URL to the license used for the API. MUST be in the format of a URL. |
unknown | Additional properties |
TagMetadata
Section titled “TagMetadata”Metadata to a single tag that is used by operations.
model TypeSpec.OpenAPI.TagMetadataProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| description? | string | A description of the API. |
| externalDocs? | ExternalDocs | An external Docs information of the API. |
| parent? | string | The 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? | string | A 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? | string | A 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. |
unknown | Additional properties |