@typespec/json-schema 1.8.0-dev.0 → 1.8.0-dev.2

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.
@@ -1,5 +1,5 @@
1
- import type { DecoratorContext, Model, Type } from "@typespec/compiler";
2
- export type ValidatesRawJsonDecorator = (context: DecoratorContext, target: Model, value: Type) => void;
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, Model, Type } from "@typespec/compiler";
2
+ export type ValidatesRawJsonDecorator = (context: DecoratorContext, target: Model, value: Type) => DecoratorValidatorCallbacks | void;
3
3
  export type TypeSpecJsonSchemaPrivateDecorators = {
4
4
  validatesRawJson: ValidatesRawJsonDecorator;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSpec.JsonSchema.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.JsonSchema.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG,CACtC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,IAAI,KACR,IAAI,CAAC;AAEV,MAAM,MAAM,mCAAmC,GAAG;IAChD,gBAAgB,EAAE,yBAAyB,CAAC;CAC7C,CAAC"}
1
+ {"version":3,"file":"TypeSpec.JsonSchema.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.JsonSchema.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,KAAK,EACL,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,yBAAyB,GAAG,CACtC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,IAAI,KACR,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,mCAAmC,GAAG;IAChD,gBAAgB,EAAE,yBAAyB,CAAC;CAC7C,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecoratorContext, ModelProperty, Namespace, Numeric, Scalar, Type, Union } from "@typespec/compiler";
1
+ import type { DecoratorContext, DecoratorValidatorCallbacks, ModelProperty, Namespace, Numeric, Scalar, Type, Union } from "@typespec/compiler";
2
2
  /**
3
3
  * Add to namespaces to emit models within that namespace to JSON schema.
4
4
  * Add to another declaration to emit that declaration to JSON schema.
@@ -8,13 +8,13 @@ import type { DecoratorContext, ModelProperty, Namespace, Numeric, Scalar, Type,
8
8
  *
9
9
  * @param baseUri Schema IDs are interpreted as relative to this URI.
10
10
  */
11
- export type JsonSchemaDecorator = (context: DecoratorContext, target: Type, baseUri?: string) => void;
11
+ export type JsonSchemaDecorator = (context: DecoratorContext, target: Type, baseUri?: string) => DecoratorValidatorCallbacks | void;
12
12
  /**
13
13
  * Set the base URI for any schemas emitted from types within this namespace.
14
14
  *
15
15
  * @param baseUri The base URI. Schema IDs inside this namespace are relative to this URI.
16
16
  */
17
- export type BaseUriDecorator = (context: DecoratorContext, target: Namespace, baseUri: string) => void;
17
+ export type BaseUriDecorator = (context: DecoratorContext, target: Namespace, baseUri: string) => DecoratorValidatorCallbacks | void;
18
18
  /**
19
19
  * Specify the JSON Schema id. If this model or a parent namespace has a base URI,
20
20
  * the provided ID will be relative to that base URI.
@@ -23,54 +23,54 @@ export type BaseUriDecorator = (context: DecoratorContext, target: Namespace, ba
23
23
  *
24
24
  * @param id The id of the JSON schema for this declaration.
25
25
  */
26
- export type IdDecorator = (context: DecoratorContext, target: Type, id: string) => void;
26
+ export type IdDecorator = (context: DecoratorContext, target: Type, id: string) => DecoratorValidatorCallbacks | void;
27
27
  /**
28
28
  * Specify that `oneOf` should be used instead of `anyOf` for that union.
29
29
  */
30
- export type OneOfDecorator = (context: DecoratorContext, target: Union | ModelProperty) => void;
30
+ export type OneOfDecorator = (context: DecoratorContext, target: Union | ModelProperty) => DecoratorValidatorCallbacks | void;
31
31
  /**
32
32
  * Specify that the numeric type must be a multiple of some numeric value.
33
33
  *
34
34
  * @param value The numeric type must be a multiple of this value.
35
35
  */
36
- export type MultipleOfDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => void;
36
+ export type MultipleOfDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Numeric) => DecoratorValidatorCallbacks | void;
37
37
  /**
38
38
  * Specify that the array must contain at least one instance of the provided type.
39
39
  * Use `@minContains` and `@maxContains` to customize how many instances to expect.
40
40
  *
41
41
  * @param value The type the array must contain.
42
42
  */
43
- export type ContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Type) => void;
43
+ export type ContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Type) => DecoratorValidatorCallbacks | void;
44
44
  /**
45
45
  * Used in conjunction with the `@contains` decorator,
46
46
  * specifies that the array must contain at least a certain number of the types provided by the `@contains` decorator.
47
47
  *
48
48
  * @param value The minimum number of instances the array must contain
49
49
  */
50
- export type MinContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => void;
50
+ export type MinContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => DecoratorValidatorCallbacks | void;
51
51
  /**
52
52
  * Used in conjunction with the `@contains` decorator,
53
53
  * specifies that the array must contain at most a certain number of the types provided by the `@contains` decorator.
54
54
  *
55
55
  * @param value The maximum number of instances the array must contain
56
56
  */
57
- export type MaxContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => void;
57
+ export type MaxContainsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => DecoratorValidatorCallbacks | void;
58
58
  /**
59
59
  * Specify that every item in the array must be unique.
60
60
  */
61
- export type UniqueItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty) => void;
61
+ export type UniqueItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty) => DecoratorValidatorCallbacks | void;
62
62
  /**
63
63
  * Specify the minimum number of properties this object can have.
64
64
  *
65
65
  * @param value The minimum number of properties this object can have.
66
66
  */
67
- export type MinPropertiesDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => void;
67
+ export type MinPropertiesDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => DecoratorValidatorCallbacks | void;
68
68
  /**
69
69
  * Specify the maximum number of properties this object can have.
70
70
  *
71
71
  * @param value The maximum number of properties this object can have.
72
72
  */
73
- export type MaxPropertiesDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => void;
73
+ export type MaxPropertiesDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: number) => DecoratorValidatorCallbacks | void;
74
74
  /**
75
75
  * Specify the encoding used for the contents of a string.
76
76
  *
@@ -78,26 +78,26 @@ export type MaxPropertiesDecorator = (context: DecoratorContext, target: Type |
78
78
  *
79
79
  *
80
80
  */
81
- export type ContentEncodingDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: string) => void;
81
+ export type ContentEncodingDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: string) => DecoratorValidatorCallbacks | void;
82
82
  /**
83
83
  * Specify that the target array must begin with the provided types.
84
84
  *
85
85
  * @param value A tuple containing the types that must be present at the start of the array
86
86
  */
87
- export type PrefixItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Type) => void;
87
+ export type PrefixItemsDecorator = (context: DecoratorContext, target: Type | ModelProperty, value: Type) => DecoratorValidatorCallbacks | void;
88
88
  /**
89
89
  * Specify the content type of content stored in a string.
90
90
  *
91
91
  * @param value The media type of the string contents
92
92
  */
93
- export type ContentMediaTypeDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: string) => void;
93
+ export type ContentMediaTypeDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: string) => DecoratorValidatorCallbacks | void;
94
94
  /**
95
95
  * Specify the schema for the contents of a string when interpreted according to the content's
96
96
  * media type and encoding.
97
97
  *
98
98
  * @param value The schema of the string contents
99
99
  */
100
- export type ContentSchemaDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Type) => void;
100
+ export type ContentSchemaDecorator = (context: DecoratorContext, target: Scalar | ModelProperty, value: Type) => DecoratorValidatorCallbacks | void;
101
101
  /**
102
102
  * Specify a custom property to add to the emitted schema. This is useful for adding custom keywords
103
103
  * and other vendor-specific extensions. Scalar values need to be specified using `typeof` to be converted to a schema.
@@ -117,7 +117,7 @@ export type ContentSchemaDecorator = (context: DecoratorContext, target: Scalar
117
117
  * @param key The name of the keyword of vendor extension, e.g. `x-custom`.
118
118
  * @param value The value of the keyword.
119
119
  */
120
- export type ExtensionDecorator = (context: DecoratorContext, target: Type, key: string, value: Type | unknown) => void;
120
+ export type ExtensionDecorator = (context: DecoratorContext, target: Type, key: string, value: Type | unknown) => DecoratorValidatorCallbacks | void;
121
121
  export type TypeSpecJsonSchemaDecorators = {
122
122
  jsonSchema: JsonSchemaDecorator;
123
123
  baseUri: BaseUriDecorator;
@@ -1 +1 @@
1
- {"version":3,"file":"TypeSpec.JsonSchema.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.JsonSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,KAAK,EACN,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,EACZ,OAAO,CAAC,EAAE,MAAM,KACb,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI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AAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,GAAG,aAAa,EAC9B,KAAK,EAAE,MAAM,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,GAAG,aAAa,EAC9B,KAAK,EAAE,IAAI,KACR,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,IAAI,GAAG,OAAO,KAClB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,mBAAmB,CAAC;IAChC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,EAAE,EAAE,WAAW,CAAC;IAChB,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,oBAAoB,CAAC;IAClC,aAAa,EAAE,sBAAsB,CAAC;IACtC,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,WAAW,EAAE,oBAAoB,CAAC;IAClC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,aAAa,EAAE,sBAAsB,CAAC;IACtC,SAAS,EAAE,kBAAkB,CAAC;CAC/B,CAAC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.55.0"
8
+ "packageVersion": "7.55.2"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/json-schema",
3
- "version": "1.8.0-dev.0",
3
+ "version": "1.8.0-dev.2",
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,26 +40,26 @@
40
40
  "!dist/test/**"
41
41
  ],
42
42
  "peerDependencies": {
43
- "@typespec/compiler": "^1.7.0"
43
+ "@typespec/compiler": "^1.7.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/node": "~24.10.1",
47
- "@typespec/compiler": "^1.7.0",
46
+ "@types/node": "~25.0.2",
47
+ "@typespec/compiler": "^1.7.1",
48
48
  "@typespec/internal-build-utils": "^0.77.0 || >=0.78.0-dev <0.78.0",
49
49
  "@typespec/library-linter": "^0.77.0 || >=0.78.0-dev <0.78.0",
50
50
  "@typespec/tspd": "^0.73.2 || >=0.74.0-dev <0.74.0",
51
- "@vitest/coverage-v8": "^4.0.4",
52
- "@vitest/ui": "^4.0.4",
51
+ "@vitest/coverage-v8": "^4.0.15",
52
+ "@vitest/ui": "^4.0.15",
53
53
  "ajv": "~8.17.1",
54
54
  "ajv-formats": "~3.0.1",
55
55
  "c8": "^10.1.3",
56
56
  "rimraf": "~6.1.2",
57
57
  "typescript": "~5.9.2",
58
- "vitest": "^4.0.4"
58
+ "vitest": "^4.0.15"
59
59
  },
60
60
  "dependencies": {
61
61
  "@typespec/asset-emitter": "^0.77.0 || >=0.78.0-dev <0.78.0",
62
- "yaml": "~2.8.0"
62
+ "yaml": "~2.8.2"
63
63
  },
64
64
  "scripts": {
65
65
  "clean": "rimraf ./dist ./temp",