@kubb/adapter-oas 5.29.2 → 5.29.3

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/docs/options.md CHANGED
@@ -7,7 +7,7 @@ Pass these options to `adapterOas()`. All of them are optional.
7
7
  | Option | Purpose | Default |
8
8
  | --------------------------------------- | ------------------------------------ | --------------------- |
9
9
  | **Reading the spec** | | |
10
- | [`validate`](#validate) | Validate the spec. | `true` |
10
+ | [`validate`](#validate) | Validate the spec. | `false` |
11
11
  | [`contentType`](#contenttype) | Media type to keep. | Every media type |
12
12
  | [`server`](#server) | Server that sets `baseURL`. | None |
13
13
  | **Schema shape** | | |
@@ -27,16 +27,13 @@ Pass these options to `adapterOas()`. All of them are optional.
27
27
 
28
28
  #### validate
29
29
 
30
- Reports each spec problem as a [`KUBB_INVALID_SPEC`](https://kubb.dev/docs/5.x/reference/diagnostics#kubb-invalid-spec) warning, and generation continues. Set it to `false` to speed up a large spec. [`kubb validate`](https://kubb.dev/docs/5.x/reference/commands/validate) lists every error.
30
+ Set it to `true` to check the spec while generating and report each problem as a [`KUBB_INVALID_SPEC`](https://kubb.dev/docs/5.x/reference/diagnostics#kubb-invalid-spec) warning, without stopping the build. The check is off by default because it slows down a large spec. [`kubb validate`](https://kubb.dev/docs/5.x/reference/commands/validate) lists every error.
31
31
 
32
32
  | | |
33
33
  | -------- | --------- |
34
34
  | Type | `boolean` |
35
35
  | Required | `false` |
36
- | Default | `true` |
37
-
38
- > [!NOTE]
39
- > OpenAPI 3.2 documents are not validated yet, and get one warning that says so.
36
+ | Default | `false` |
40
37
 
41
38
  #### contentType
42
39
 
package/docs/overview.md CHANGED
@@ -14,7 +14,7 @@ No setup is needed. `defineConfig` uses `adapterOas()` by default. Set `adapter`
14
14
 
15
15
  | Option | Default | What it does |
16
16
  | ------------------------------------------------------------------------------------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------- |
17
- | [`validate`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#validate) | `true` | Checks the spec and reports each problem as a warning. Turn it off to speed up a large spec. |
17
+ | [`validate`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#validate) | `false` | `true` checks the spec while generating and reports each problem as a warning. |
18
18
  | [`dateType`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#datetype) | `'string'` | Types `date-time`, `date`, and `time` as strings or as `Date` objects. |
19
19
  | [`integerType`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#integertype) | `'bigint'` | Types `int64` and `uint64` as `bigint` or `number`. Choose `'number'` for most JSON APIs. |
20
20
  | [`enums`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#enums) | `'inline'` | `'root'` lifts inline enums to top-level schemas, such as `PetStatusEnum`. |
@@ -21,9 +21,9 @@
21
21
  "key": "validate",
22
22
  "path": ["validate"],
23
23
  "label": "Validate",
24
- "description": "Validate the spec before parsing. Each problem is reported as a warning and generation continues. Turn it off to speed up a large spec.",
24
+ "description": "Check the spec while generating and report each problem as a warning, without stopping the build. The check is off by default because it slows down a large spec.",
25
25
  "type": "boolean",
26
- "default": true
26
+ "default": false
27
27
  },
28
28
  {
29
29
  "key": "dateType",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/adapter-oas",
3
- "version": "5.29.2",
3
+ "version": "5.29.3",
4
4
  "description": "OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast InputNode for downstream code generation plugins.",
5
5
  "keywords": [
6
6
  "adapter",
@@ -66,9 +66,9 @@
66
66
  "registry": "https://registry.npmjs.org/"
67
67
  },
68
68
  "dependencies": {
69
- "@kubb/ast": "5.29.2",
70
- "@kubb/core": "5.29.2",
71
- "@kubb/kit": "5.29.2",
69
+ "@kubb/ast": "5.29.3",
70
+ "@kubb/core": "5.29.3",
71
+ "@kubb/kit": "5.29.3",
72
72
  "@readme/openapi-parser": "^11.0.0",
73
73
  "@scalar/openapi-upgrader": "^0.5.3",
74
74
  "api-ref-bundler": "1.0.0",