@kubb/ast 5.0.0-alpha.57 → 5.0.0-alpha.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +78 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +0 -18
package/dist/index.js
CHANGED
|
@@ -37,31 +37,109 @@ const nodeKinds = {
|
|
|
37
37
|
* - special OpenAPI-oriented types (`ref`, `datetime`, `uuid`, ...)
|
|
38
38
|
*/
|
|
39
39
|
const schemaTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* Text value.
|
|
42
|
+
*/
|
|
40
43
|
string: "string",
|
|
44
|
+
/**
|
|
45
|
+
* Floating-point number (`float`, `double`).
|
|
46
|
+
*/
|
|
41
47
|
number: "number",
|
|
48
|
+
/**
|
|
49
|
+
* Whole number (`int32`). Use `bigint` for `int64`.
|
|
50
|
+
*/
|
|
42
51
|
integer: "integer",
|
|
52
|
+
/**
|
|
53
|
+
* 64-bit integer (`int64`). Only used when `integerType` is set to `'bigint'`.
|
|
54
|
+
*/
|
|
43
55
|
bigint: "bigint",
|
|
56
|
+
/**
|
|
57
|
+
* Boolean value
|
|
58
|
+
*/
|
|
44
59
|
boolean: "boolean",
|
|
60
|
+
/**
|
|
61
|
+
* Explicit null value.
|
|
62
|
+
*/
|
|
45
63
|
null: "null",
|
|
64
|
+
/**
|
|
65
|
+
* Any value (no type restriction).
|
|
66
|
+
*/
|
|
46
67
|
any: "any",
|
|
68
|
+
/**
|
|
69
|
+
* Unknown value (must be narrowed before usage).
|
|
70
|
+
*/
|
|
47
71
|
unknown: "unknown",
|
|
72
|
+
/**
|
|
73
|
+
* No return value (`void`).
|
|
74
|
+
*/
|
|
48
75
|
void: "void",
|
|
76
|
+
/**
|
|
77
|
+
* Object with named properties.
|
|
78
|
+
*/
|
|
49
79
|
object: "object",
|
|
80
|
+
/**
|
|
81
|
+
* Sequential list of items.
|
|
82
|
+
*/
|
|
50
83
|
array: "array",
|
|
84
|
+
/**
|
|
85
|
+
* Fixed-length list with position-specific items.
|
|
86
|
+
*/
|
|
51
87
|
tuple: "tuple",
|
|
88
|
+
/**
|
|
89
|
+
* "One of" multiple schema members.
|
|
90
|
+
*/
|
|
52
91
|
union: "union",
|
|
92
|
+
/**
|
|
93
|
+
* "All of" multiple schema members.
|
|
94
|
+
*/
|
|
53
95
|
intersection: "intersection",
|
|
96
|
+
/**
|
|
97
|
+
* Enum schema.
|
|
98
|
+
*/
|
|
54
99
|
enum: "enum",
|
|
100
|
+
/**
|
|
101
|
+
* Reference to another schema.
|
|
102
|
+
*/
|
|
55
103
|
ref: "ref",
|
|
104
|
+
/**
|
|
105
|
+
* Calendar date (for example `2026-03-24`).
|
|
106
|
+
*/
|
|
56
107
|
date: "date",
|
|
108
|
+
/**
|
|
109
|
+
* Date-time value (for example `2026-03-24T09:00:00Z`).
|
|
110
|
+
*/
|
|
57
111
|
datetime: "datetime",
|
|
112
|
+
/**
|
|
113
|
+
* Time-only value (for example `09:00:00`).
|
|
114
|
+
*/
|
|
58
115
|
time: "time",
|
|
116
|
+
/**
|
|
117
|
+
* UUID value.
|
|
118
|
+
*/
|
|
59
119
|
uuid: "uuid",
|
|
120
|
+
/**
|
|
121
|
+
* Email address value.
|
|
122
|
+
*/
|
|
60
123
|
email: "email",
|
|
124
|
+
/**
|
|
125
|
+
* URL value.
|
|
126
|
+
*/
|
|
61
127
|
url: "url",
|
|
128
|
+
/**
|
|
129
|
+
* IPv4 address value.
|
|
130
|
+
*/
|
|
62
131
|
ipv4: "ipv4",
|
|
132
|
+
/**
|
|
133
|
+
* IPv6 address value.
|
|
134
|
+
*/
|
|
63
135
|
ipv6: "ipv6",
|
|
136
|
+
/**
|
|
137
|
+
* Binary/blob value.
|
|
138
|
+
*/
|
|
64
139
|
blob: "blob",
|
|
140
|
+
/**
|
|
141
|
+
* Impossible value (`never`).
|
|
142
|
+
*/
|
|
65
143
|
never: "never"
|
|
66
144
|
};
|
|
67
145
|
/**
|