@typespec/json-schema 0.61.0 → 0.62.0-dev.1
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/README.md +7 -9
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -26,9 +26,7 @@ model Car {
|
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
### Usage
|
|
29
|
+
## Usage
|
|
32
30
|
|
|
33
31
|
1. Via the command line
|
|
34
32
|
|
|
@@ -53,15 +51,15 @@ options:
|
|
|
53
51
|
option: value
|
|
54
52
|
```
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
## Emitter options
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
### `file-type`
|
|
59
57
|
|
|
60
58
|
**Type:** `"yaml" | "json"`
|
|
61
59
|
|
|
62
60
|
Serialize the schema as either yaml or json.
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
### `int64-strategy`
|
|
65
63
|
|
|
66
64
|
**Type:** `"string" | "number"`
|
|
67
65
|
|
|
@@ -70,19 +68,19 @@ How to handle 64 bit integers on the wire. Options are:
|
|
|
70
68
|
- string: serialize as a string (widely interoperable)
|
|
71
69
|
- number: serialize as a number (not widely interoperable)
|
|
72
70
|
|
|
73
|
-
|
|
71
|
+
### `bundleId`
|
|
74
72
|
|
|
75
73
|
**Type:** `string`
|
|
76
74
|
|
|
77
75
|
When provided, bundle all the schemas into a single json schema document with schemas under $defs. The provided id is the id of the root document and is also used for the file name.
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
### `emitAllModels`
|
|
80
78
|
|
|
81
79
|
**Type:** `boolean`
|
|
82
80
|
|
|
83
81
|
When true, emit all model declarations to JSON Schema without requiring the @jsonSchema decorator.
|
|
84
82
|
|
|
85
|
-
|
|
83
|
+
### `emitAllRefs`
|
|
86
84
|
|
|
87
85
|
**Type:** `boolean`
|
|
88
86
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec",
|
|
6
6
|
"homepage": "https://github.com/microsoft/typespec",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"!dist/test/**"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@typespec/compiler": "~0.61.0"
|
|
42
|
+
"@typespec/compiler": "~0.61.0 || >=0.62.0-dev <0.62.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/node": "~22.7.
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
45
|
+
"@types/node": "~22.7.5",
|
|
46
|
+
"@typespec/compiler": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
47
|
+
"@typespec/internal-build-utils": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
48
|
+
"@typespec/library-linter": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
49
|
+
"@vitest/coverage-v8": "^2.1.2",
|
|
50
|
+
"@vitest/ui": "^2.1.2",
|
|
48
51
|
"ajv": "~8.17.1",
|
|
49
52
|
"ajv-formats": "~3.0.1",
|
|
50
53
|
"c8": "^10.1.2",
|
|
51
54
|
"rimraf": "~6.0.1",
|
|
52
|
-
"typescript": "~5.6.
|
|
53
|
-
"vitest": "^2.1.
|
|
54
|
-
"@typespec/compiler": "~0.61.0",
|
|
55
|
-
"@typespec/internal-build-utils": "~0.61.0",
|
|
56
|
-
"@typespec/library-linter": "~0.61.0",
|
|
55
|
+
"typescript": "~5.6.3",
|
|
56
|
+
"vitest": "^2.1.2",
|
|
57
57
|
"@typespec/tspd": "~0.46.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|