@kubb/adapter-oas 5.0.0-beta.44 → 5.0.0-beta.46
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/extension.yaml +5 -5
- package/package.json +3 -3
package/extension.yaml
CHANGED
|
@@ -295,14 +295,14 @@ options:
|
|
|
295
295
|
- name: integerType
|
|
296
296
|
type: "'number' | 'bigint'"
|
|
297
297
|
required: false
|
|
298
|
-
default: "'
|
|
298
|
+
default: "'bigint'"
|
|
299
299
|
description: |
|
|
300
300
|
How `type: integer` (and `format: int64`) maps to TypeScript.
|
|
301
301
|
|
|
302
|
-
- `'
|
|
303
|
-
- `'
|
|
302
|
+
- `'bigint'` (default) — exact for 64-bit IDs, but `JSON.stringify`/`JSON.parse` cannot round-trip it. Use only when you also handle bigint serialization explicitly.
|
|
303
|
+
- `'number'` — fits most JSON APIs; loses precision above `Number.MAX_SAFE_INTEGER`.
|
|
304
304
|
examples:
|
|
305
|
-
- name: "'number'
|
|
305
|
+
- name: "'number'"
|
|
306
306
|
files:
|
|
307
307
|
- lang: typescript
|
|
308
308
|
twoslash: false
|
|
@@ -310,7 +310,7 @@ options:
|
|
|
310
310
|
type Pet = {
|
|
311
311
|
id: number
|
|
312
312
|
}
|
|
313
|
-
- name: "'bigint'"
|
|
313
|
+
- name: "'bigint' (default)"
|
|
314
314
|
files:
|
|
315
315
|
- lang: typescript
|
|
316
316
|
twoslash: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/adapter-oas",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.46",
|
|
4
4
|
"description": "OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"oas": "^32.1.18",
|
|
48
48
|
"oas-normalize": "^16.0.5",
|
|
49
49
|
"swagger2openapi": "^7.0.8",
|
|
50
|
-
"@kubb/ast": "5.0.0-beta.
|
|
51
|
-
"@kubb/core": "5.0.0-beta.
|
|
50
|
+
"@kubb/ast": "5.0.0-beta.46",
|
|
51
|
+
"@kubb/core": "5.0.0-beta.46"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/swagger2openapi": "^7.0.4",
|