@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.cjs CHANGED
@@ -497,8 +497,8 @@ async function assertInputExists(input) {
497
497
  if (!await exists(input)) throw new _kubb_core.Diagnostics.Error({
498
498
  code: _kubb_core.Diagnostics.code.inputNotFound,
499
499
  severity: "error",
500
- message: `Cannot read the file set in \`input.path\` (or via \`kubb generate PATH\`): ${input}`,
501
- help: "Check that the path exists and is readable, then set it in `input.path` or pass it as `kubb generate PATH`.",
500
+ message: `Cannot read the file set as \`input\` (or via \`kubb generate PATH\`): ${input}`,
501
+ help: "Check that the path exists and is readable, then set it as `input` or pass it as `kubb generate PATH`.",
502
502
  location: { kind: "config" }
503
503
  });
504
504
  }
@@ -2266,9 +2266,9 @@ function visit(node, pointer) {
2266
2266
  const adapterOasName = "oas";
2267
2267
  /**
2268
2268
  * Default Kubb adapter for OpenAPI 2.0, 3.0, and 3.1 specifications. Reads the
2269
- * file at `input.path`, validates it, resolves the base URL, and converts every
2270
- * schema and operation into the universal AST that every downstream plugin
2271
- * consumes.
2269
+ * spec from `input` (a file path, URL, inline content, or parsed object), validates
2270
+ * it, resolves the base URL, and converts every schema and operation into the
2271
+ * universal AST that every downstream plugin consumes.
2272
2272
  *
2273
2273
  * Configure once on `defineConfig`. The adapter's choices (date representation,
2274
2274
  * integer width, server URL) apply to every plugin in the build.
@@ -2280,7 +2280,7 @@ const adapterOasName = "oas";
2280
2280
  * import { pluginTs } from '@kubb/plugin-ts'
2281
2281
  *
2282
2282
  * export default defineConfig({
2283
- * input: { path: './petStore.yaml' },
2283
+ * input: './petStore.yaml',
2284
2284
  * output: { path: './src/gen' },
2285
2285
  * adapter: adapterOas({
2286
2286
  * server: { index: 0 },