@typespec/openapi3 1.8.0-dev.0 → 1.8.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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { DecoratorContext, Model, ModelProperty, Union } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Model, ModelProperty, Union } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* Specify that `oneOf` should be used instead of `anyOf` for that union.
|
|
4
4
|
*/
|
|
5
|
-
export type OneOfDecorator = (context: DecoratorContext, target: Union | ModelProperty) => void;
|
|
5
|
+
export type OneOfDecorator = (context: DecoratorContext, target: Union | ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
6
6
|
/**
|
|
7
7
|
* Specify an external reference that should be used inside of emitting this type.
|
|
8
8
|
*
|
|
9
9
|
* @param ref External reference(e.g. "../../common.json#/components/schemas/Foo")
|
|
10
10
|
*/
|
|
11
|
-
export type UseRefDecorator = (context: DecoratorContext, target: Model | ModelProperty, ref: string) => void;
|
|
11
|
+
export type UseRefDecorator = (context: DecoratorContext, target: Model | ModelProperty, ref: string) => DecoratorValidatorCallbacks | void;
|
|
12
12
|
export type TypeSpecOpenAPIDecorators = {
|
|
13
13
|
oneOf: OneOfDecorator;
|
|
14
14
|
useRef: UseRefDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeSpec.OpenAPI.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"TypeSpec.OpenAPI.d.ts","sourceRoot":"","sources":["../../generated-defs/TypeSpec.OpenAPI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,KAAK,EACL,aAAa,EACb,KAAK,EACN,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,KAC1B,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,GAAG,EAAE,MAAM,KACR,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/openapi3",
|
|
3
|
-
"version": "1.8.0-dev.
|
|
3
|
+
"version": "1.8.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting OpenAPI 3.0 and OpenAPI 3.1 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"yaml": "~2.8.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@typespec/compiler": "^1.7.
|
|
55
|
+
"@typespec/compiler": "^1.7.1",
|
|
56
56
|
"@typespec/events": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
57
57
|
"@typespec/http": "^1.7.0",
|
|
58
58
|
"@typespec/json-schema": "^1.7.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/node": "~24.10.1",
|
|
86
86
|
"@types/yargs": "~17.0.33",
|
|
87
|
-
"@typespec/compiler": "^1.7.
|
|
87
|
+
"@typespec/compiler": "^1.7.1",
|
|
88
88
|
"@typespec/events": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
89
89
|
"@typespec/http": "^1.7.0",
|
|
90
90
|
"@typespec/json-schema": "^1.7.0",
|