-
Notifications
You must be signed in to change notification settings - Fork 737
Expand file tree
/
Copy pathformats.ts
More file actions
91 lines (67 loc) · 2.54 KB
/
formats.ts
File metadata and controls
91 lines (67 loc) · 2.54 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export enum StringFormat {
/** @description Standard string format */
None = "",
/** @description A single character */
Char = "char",
/** @description A base64 string of characters. Represents a byte array */
Byte = "byte",
/**
* @description Any sequence of octets. (ie, a sequence of unencoded bytes)
* This may not be used for a parameter or property, as it represents a sequence of bytes,
* it may only be used as for a request or response body, and must be used with an appropriate content-type
*/
Binary = "binary",
/** @description A date as defined by full-date - RFC3339 */
Date = "date",
/** @description A time as defined by ISO 8661 */
Time = "time",
/** @description A Date-Time as defined by date-time - RFC3339 */
DateTime = "date-time",
/** @description A hint to UIs to obscure input. */
Password = "password",
/** @description a A Date-Time as defined by date-time - RFC1123 */
DateTimeRfc1123 = "date-time-rfc1123",
/** @description a A Date-Time as defined by date-time - RFC1123 */
DateTimeRfc7231 = "date-time-rfc7231",
/** @description a duration of time (todo: RFC reference? ) */
Duration = "duration",
/** @description a Universally Unique Identifier ( ISO/IEC 11578:1996) */
Uuid = "uuid",
/** @description a base64url string of characters, represented as a byte array (see RFC 4648 ) */
Base64Url = "base64url",
/**
* @description a string that should be an URI.
*/
Uri = "uri",
/**
* @description a string that should be an URI. Alias of uri
*/
Url = "url",
/**
* Represent a Azure Resource Manager Resource ID.
*/
ArmId = "arm-id",
/** @description an encoded odata query string */
OData = "odata-query",
Certificate = "certificate",
}
export enum IntegerFormat {
/** @description an integer value (a javascript representation of maximum safe value is (2^53 - 1). ) */
None = "",
/** @description an explicity declared 32 bit integer */
Int32 = "int32",
/** @description an explicity declared 64 bit integer */
Int64 = "int64",
/** @description a UnixTime (number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970) */
UnixTime = "unixtime",
}
export enum NumberFormat {
/** @description - any number */
None = "",
/** @description - a 32 bit-precision floating point value */
Float = "float",
/** @description - a 64 bit-precision floating point value */
Double = "double",
/** @description - a 128 bit-precision floating point value */
Decimal = "decimal",
}