@kubb/core 5.0.0-beta.107 → 5.0.0-beta.108
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 +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-Dtisidv5.d.ts → types-C_JCC5Dl.d.ts} +13 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -152,7 +152,7 @@ function randomCliColor(text) {
|
|
|
152
152
|
}
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region package.json
|
|
155
|
-
var version = "5.0.0-beta.
|
|
155
|
+
var version = "5.0.0-beta.108";
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/constants.ts
|
|
158
158
|
/**
|
|
@@ -182,6 +182,16 @@ const diagnosticCode = {
|
|
|
182
182
|
*/
|
|
183
183
|
inputNotFound: "KUBB_INPUT_NOT_FOUND",
|
|
184
184
|
/**
|
|
185
|
+
* A URL set as `input` (or referenced by a `$ref`) answered with a 4xx or 5xx status
|
|
186
|
+
* instead of the document.
|
|
187
|
+
*/
|
|
188
|
+
inputRequestFailed: "KUBB_INPUT_REQUEST_FAILED",
|
|
189
|
+
/**
|
|
190
|
+
* A URL set as `input` (or referenced by a `$ref`) never answered, so the request failed
|
|
191
|
+
* before a status was returned.
|
|
192
|
+
*/
|
|
193
|
+
inputUnreachable: "KUBB_INPUT_UNREACHABLE",
|
|
194
|
+
/**
|
|
185
195
|
* An adapter was configured without an `input`.
|
|
186
196
|
*/
|
|
187
197
|
inputRequired: "KUBB_INPUT_REQUIRED",
|
|
@@ -334,8 +344,18 @@ const diagnosticCatalog = {
|
|
|
334
344
|
},
|
|
335
345
|
[diagnosticCode.inputNotFound]: {
|
|
336
346
|
title: "Input not found",
|
|
337
|
-
cause: "The file
|
|
338
|
-
fix: "Check that the path
|
|
347
|
+
cause: "The file set as `input` (or passed as `kubb generate PATH`) could not be read. A URL reports `KUBB_INPUT_REQUEST_FAILED` or `KUBB_INPUT_UNREACHABLE` instead.",
|
|
348
|
+
fix: "Check that the path exists and is readable, then set it as `input` or pass it on the CLI."
|
|
349
|
+
},
|
|
350
|
+
[diagnosticCode.inputRequestFailed]: {
|
|
351
|
+
title: "Input request failed",
|
|
352
|
+
cause: "A URL set as `input` (or reached through a `$ref`) answered with a 4xx or 5xx status instead of the document.",
|
|
353
|
+
fix: "Open the URL to see what the server returns. A 401 or 403 needs credentials Kubb does not send, so download the document and point `input` at the local file. A 404 means the path is wrong, and a 5xx means the server itself failed."
|
|
354
|
+
},
|
|
355
|
+
[diagnosticCode.inputUnreachable]: {
|
|
356
|
+
title: "Input unreachable",
|
|
357
|
+
cause: "A URL set as `input` (or reached through a `$ref`) never answered, so the request failed before a status came back. A refused connection, an unknown host, an expired certificate, and a timeout all land here.",
|
|
358
|
+
fix: "Check that the host is running and reachable from this machine. For a local server, start it and confirm the port matches the one in `input`."
|
|
339
359
|
},
|
|
340
360
|
[diagnosticCode.inputRequired]: {
|
|
341
361
|
title: "Input required",
|