@typespec/json-schema 1.13.0-dev.1 → 1.14.0-dev.0
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 +4 -0
- package/dist/src/tsdoc-metadata.json +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -97,6 +97,8 @@ When true, emit all references as json schema files, even if the referenced type
|
|
|
97
97
|
|
|
98
98
|
**Type:** `boolean`
|
|
99
99
|
|
|
100
|
+
**Default:** `false`
|
|
101
|
+
|
|
100
102
|
If true, then for models emitted as object schemas we default `unevaluatedProperties` to `{ not: {} }`,
|
|
101
103
|
if not explicitly specified elsewhere.
|
|
102
104
|
Default: `false`
|
|
@@ -105,6 +107,8 @@ Default: `false`
|
|
|
105
107
|
|
|
106
108
|
**Type:** `"ignore" | "oneOf" | "anyOf"`
|
|
107
109
|
|
|
110
|
+
**Default:** `"ignore"`
|
|
111
|
+
|
|
108
112
|
Strategy for emitting models with the @discriminator decorator:
|
|
109
113
|
|
|
110
114
|
- ignore: Emit as regular object schema (default). Derived models use allOf to reference their base model.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/json-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0-dev.0",
|
|
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",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"!dist/test/**"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@typespec/compiler": "^1.
|
|
43
|
+
"@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.5.2",
|
|
47
|
-
"@typespec/compiler": "^1.
|
|
48
|
-
"@typespec/internal-build-utils": "^0.
|
|
49
|
-
"@typespec/library-linter": "^0.
|
|
50
|
-
"@typespec/tspd": "^0.
|
|
47
|
+
"@typespec/compiler": "^1.13.0 || >= 1.14.0-dev.0",
|
|
48
|
+
"@typespec/internal-build-utils": "^0.83.0 || >= 0.84.0-dev.0",
|
|
49
|
+
"@typespec/library-linter": "^0.83.0 || >= 0.84.0-dev.0",
|
|
50
|
+
"@typespec/tspd": "^0.75.0 || >= 0.75.1-dev.0",
|
|
51
51
|
"@vitest/coverage-v8": "^4.1.3",
|
|
52
52
|
"@vitest/ui": "^4.1.3",
|
|
53
53
|
"ajv": "^8.18.0",
|