@azure-tools/typespec-autorest 0.63.1 → 0.64.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,4 +1,4 @@
|
|
|
1
|
-
import type { DecoratorContext, Model, ModelProperty, Operation } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Model, ModelProperty, Operation } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* `@example` - attaches example files to an operation. Multiple examples can be specified.
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@ import type { DecoratorContext, Model, ModelProperty, Operation } from "@typespe
|
|
|
7
7
|
* @param pathOrUri path or Uri to the example file.
|
|
8
8
|
* @param title name or description of the example file.
|
|
9
9
|
*/
|
|
10
|
-
export type ExampleDecorator = (context: DecoratorContext, target: Operation, pathOrUri: string, title: string) => void;
|
|
10
|
+
export type ExampleDecorator = (context: DecoratorContext, target: Operation, pathOrUri: string, title: string) => DecoratorValidatorCallbacks | void;
|
|
11
11
|
/**
|
|
12
12
|
* `@useRef` - is used to replace the TypeSpec model type in emitter output with a pre-existing named OpenAPI schema such as Azure Resource Manager common types.
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ export type ExampleDecorator = (context: DecoratorContext, target: Operation, pa
|
|
|
15
15
|
*
|
|
16
16
|
* @param jsonRef path or Uri to an OpenAPI schema.
|
|
17
17
|
*/
|
|
18
|
-
export type UseRefDecorator = (context: DecoratorContext, entity: Model | ModelProperty, jsonRef: string) => void;
|
|
18
|
+
export type UseRefDecorator = (context: DecoratorContext, entity: Model | ModelProperty, jsonRef: string) => DecoratorValidatorCallbacks | void;
|
|
19
19
|
export type AutorestDecorators = {
|
|
20
20
|
example: ExampleDecorator;
|
|
21
21
|
useRef: UseRefDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autorest.d.ts","sourceRoot":"","sources":["../../generated-defs/Autorest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Autorest.d.ts","sourceRoot":"","sources":["../../generated-defs/Autorest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,KAAK,EACL,aAAa,EACb,SAAS,EACV,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,OAAO,EAAE,MAAM,KACZ,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-autorest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting openapi from the TypeSpec REST protocol binding",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"!dist/test/**"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@azure-tools/typespec-azure-core": "^0.63.0",
|
|
45
|
-
"@azure-tools/typespec-azure-resource-manager": "^0.63.0",
|
|
46
|
-
"@azure-tools/typespec-client-generator-core": "^0.63.1",
|
|
44
|
+
"@azure-tools/typespec-azure-core": "^0.63.0 || >=0.64.0-dev <0.64.0",
|
|
45
|
+
"@azure-tools/typespec-azure-resource-manager": "^0.63.0 || >=0.64.0-dev <0.64.0",
|
|
46
|
+
"@azure-tools/typespec-client-generator-core": "^0.63.1 || >=0.64.0-dev <0.64.0",
|
|
47
|
+
"@typespec/compiler": "^1.7.1",
|
|
47
48
|
"@typespec/http": "^1.7.0",
|
|
48
49
|
"@typespec/openapi": "^1.7.0",
|
|
49
|
-
"@typespec/
|
|
50
|
-
"@typespec/
|
|
51
|
-
"@typespec/
|
|
52
|
-
"@typespec/xml": "^0.77.0"
|
|
50
|
+
"@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
51
|
+
"@typespec/versioning": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
52
|
+
"@typespec/xml": "^0.77.0 || >=0.78.0-dev <0.78.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@typespec/xml": {
|
|
@@ -57,25 +57,26 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
+
"@azure-tools/typespec-azure-core": "^0.63.0 || >=0.64.0-dev <0.64.0",
|
|
61
|
+
"@azure-tools/typespec-azure-resource-manager": "^0.63.0 || >=0.64.0-dev <0.64.0",
|
|
62
|
+
"@azure-tools/typespec-client-generator-core": "^0.63.1 || >=0.64.0-dev <0.64.0",
|
|
60
63
|
"@types/node": "~24.10.1",
|
|
64
|
+
"@typespec/compiler": "^1.7.1",
|
|
65
|
+
"@typespec/http": "^1.7.0",
|
|
66
|
+
"@typespec/json-schema": "^1.7.0",
|
|
67
|
+
"@typespec/library-linter": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
68
|
+
"@typespec/openapi": "^1.7.0",
|
|
69
|
+
"@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
70
|
+
"@typespec/tspd": "^0.73.2 || >=0.74.0-dev <0.74.0",
|
|
71
|
+
"@typespec/versioning": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
61
72
|
"@vitest/coverage-v8": "^4.0.4",
|
|
62
73
|
"@vitest/ui": "^4.0.4",
|
|
63
74
|
"c8": "^10.1.3",
|
|
64
75
|
"rimraf": "~6.1.2",
|
|
65
76
|
"typescript": "~5.9.2",
|
|
66
|
-
"vitest": "^4.0.4"
|
|
67
|
-
"@azure-tools/typespec-azure-core": "^0.63.0",
|
|
68
|
-
"@azure-tools/typespec-azure-resource-manager": "^0.63.0",
|
|
69
|
-
"@azure-tools/typespec-client-generator-core": "^0.63.1",
|
|
70
|
-
"@typespec/compiler": "^1.7.0",
|
|
71
|
-
"@typespec/json-schema": "^1.7.0",
|
|
72
|
-
"@typespec/library-linter": "^0.77.0",
|
|
73
|
-
"@typespec/http": "^1.7.0",
|
|
74
|
-
"@typespec/openapi": "^1.7.0",
|
|
75
|
-
"@typespec/rest": "^0.77.0",
|
|
76
|
-
"@typespec/tspd": "^0.73.2",
|
|
77
|
-
"@typespec/versioning": "^0.77.0"
|
|
77
|
+
"vitest": "^4.0.4"
|
|
78
78
|
},
|
|
79
|
+
"dependencies": {},
|
|
79
80
|
"scripts": {
|
|
80
81
|
"clean": "rimraf ./dist ./temp",
|
|
81
82
|
"build": "npm run gen-extern-signature && npm run regen-autorest-openapi-schema && tsc -p . && npm run lint-typespec-library",
|