@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 CHANGED
@@ -60,31 +60,109 @@ const nodeKinds = {
60
60
  * - special OpenAPI-oriented types (`ref`, `datetime`, `uuid`, ...)
61
61
  */
62
62
  const schemaTypes = {
63
+ /**
64
+ * Text value.
65
+ */
63
66
  string: "string",
67
+ /**
68
+ * Floating-point number (`float`, `double`).
69
+ */
64
70
  number: "number",
71
+ /**
72
+ * Whole number (`int32`). Use `bigint` for `int64`.
73
+ */
65
74
  integer: "integer",
75
+ /**
76
+ * 64-bit integer (`int64`). Only used when `integerType` is set to `'bigint'`.
77
+ */
66
78
  bigint: "bigint",
79
+ /**
80
+ * Boolean value
81
+ */
67
82
  boolean: "boolean",
83
+ /**
84
+ * Explicit null value.
85
+ */
68
86
  null: "null",
87
+ /**
88
+ * Any value (no type restriction).
89
+ */
69
90
  any: "any",
91
+ /**
92
+ * Unknown value (must be narrowed before usage).
93
+ */
70
94
  unknown: "unknown",
95
+ /**
96
+ * No return value (`void`).
97
+ */
71
98
  void: "void",
99
+ /**
100
+ * Object with named properties.
101
+ */
72
102
  object: "object",
103
+ /**
104
+ * Sequential list of items.
105
+ */
73
106
  array: "array",
107
+ /**
108
+ * Fixed-length list with position-specific items.
109
+ */
74
110
  tuple: "tuple",
111
+ /**
112
+ * "One of" multiple schema members.
113
+ */
75
114
  union: "union",
115
+ /**
116
+ * "All of" multiple schema members.
117
+ */
76
118
  intersection: "intersection",
119
+ /**
120
+ * Enum schema.
121
+ */
77
122
  enum: "enum",
123
+ /**
124
+ * Reference to another schema.
125
+ */
78
126
  ref: "ref",
127
+ /**
128
+ * Calendar date (for example `2026-03-24`).
129
+ */
79
130
  date: "date",
131
+ /**
132
+ * Date-time value (for example `2026-03-24T09:00:00Z`).
133
+ */
80
134
  datetime: "datetime",
135
+ /**
136
+ * Time-only value (for example `09:00:00`).
137
+ */
81
138
  time: "time",
139
+ /**
140
+ * UUID value.
141
+ */
82
142
  uuid: "uuid",
143
+ /**
144
+ * Email address value.
145
+ */
83
146
  email: "email",
147
+ /**
148
+ * URL value.
149
+ */
84
150
  url: "url",
151
+ /**
152
+ * IPv4 address value.
153
+ */
85
154
  ipv4: "ipv4",
155
+ /**
156
+ * IPv6 address value.
157
+ */
86
158
  ipv6: "ipv6",
159
+ /**
160
+ * Binary/blob value.
161
+ */
87
162
  blob: "blob",
163
+ /**
164
+ * Impossible value (`never`).
165
+ */
88
166
  never: "never"
89
167
  };
90
168
  /**