forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
34 lines (26 loc) · 912 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export type ExtensionKey = `x-${string}`;
/**
* OpenAPI additional information
*/
export interface AdditionalInfo {
/** A URL to the Terms of Service for the API. MUST be in the format of a URL. */
termsOfService?: string;
/** The contact information for the exposed API. */
contact?: Contact;
/** The license information for the exposed API. */
license?: License;
}
export interface Contact {
/** The identifying name of the contact person/organization. */
name?: string;
/** The URL pointing to the contact information. MUST be in the format of a URL. */
url?: string;
/** The email address of the contact person/organization. MUST be in the format of an email address. */
email?: string;
}
export interface License {
/** The license name used for the API. */
name: string;
/** A URL to the license used for the API. MUST be in the format of a URL. */
url?: string;
}