@kubb/adapter-oas 5.0.0-beta.89 → 5.0.0-beta.91

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.d.ts CHANGED
@@ -1281,9 +1281,9 @@ type AdapterOas = AdapterFactoryOptions<'oas', AdapterOasOptions, AdapterOasReso
1281
1281
  declare const adapterOasName = "oas";
1282
1282
  /**
1283
1283
  * Default Kubb adapter for OpenAPI 2.0, 3.0, and 3.1 specifications. Reads the
1284
- * file at `input.path`, validates it, resolves the base URL, and converts every
1285
- * schema and operation into the universal AST that every downstream plugin
1286
- * consumes.
1284
+ * spec from `input` (a file path, URL, inline content, or parsed object), validates
1285
+ * it, resolves the base URL, and converts every schema and operation into the
1286
+ * universal AST that every downstream plugin consumes.
1287
1287
  *
1288
1288
  * Configure once on `defineConfig`. The adapter's choices (date representation,
1289
1289
  * integer width, server URL) apply to every plugin in the build.
@@ -1295,7 +1295,7 @@ declare const adapterOasName = "oas";
1295
1295
  * import { pluginTs } from '@kubb/plugin-ts'
1296
1296
  *
1297
1297
  * export default defineConfig({
1298
- * input: { path: './petStore.yaml' },
1298
+ * input: './petStore.yaml',
1299
1299
  * output: { path: './src/gen' },
1300
1300
  * adapter: adapterOas({
1301
1301
  * server: { index: 0 },
package/dist/index.js CHANGED
@@ -474,8 +474,8 @@ async function assertInputExists(input) {
474
474
  if (!await exists(input)) throw new Diagnostics.Error({
475
475
  code: Diagnostics.code.inputNotFound,
476
476
  severity: "error",
477
- message: `Cannot read the file set in \`input.path\` (or via \`kubb generate PATH\`): ${input}`,
478
- help: "Check that the path exists and is readable, then set it in `input.path` or pass it as `kubb generate PATH`.",
477
+ message: `Cannot read the file set as \`input\` (or via \`kubb generate PATH\`): ${input}`,
478
+ help: "Check that the path exists and is readable, then set it as `input` or pass it as `kubb generate PATH`.",
479
479
  location: { kind: "config" }
480
480
  });
481
481
  }
@@ -2243,9 +2243,9 @@ function visit(node, pointer) {
2243
2243
  const adapterOasName = "oas";
2244
2244
  /**
2245
2245
  * Default Kubb adapter for OpenAPI 2.0, 3.0, and 3.1 specifications. Reads the
2246
- * file at `input.path`, validates it, resolves the base URL, and converts every
2247
- * schema and operation into the universal AST that every downstream plugin
2248
- * consumes.
2246
+ * spec from `input` (a file path, URL, inline content, or parsed object), validates
2247
+ * it, resolves the base URL, and converts every schema and operation into the
2248
+ * universal AST that every downstream plugin consumes.
2249
2249
  *
2250
2250
  * Configure once on `defineConfig`. The adapter's choices (date representation,
2251
2251
  * integer width, server URL) apply to every plugin in the build.
@@ -2257,7 +2257,7 @@ const adapterOasName = "oas";
2257
2257
  * import { pluginTs } from '@kubb/plugin-ts'
2258
2258
  *
2259
2259
  * export default defineConfig({
2260
- * input: { path: './petStore.yaml' },
2260
+ * input: './petStore.yaml',
2261
2261
  * output: { path: './src/gen' },
2262
2262
  * adapter: adapterOas({
2263
2263
  * server: { index: 0 },