@typespec/openapi 0.44.0 → 0.45.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/lib/decorators.tsp +3 -3
- package/package.json +11 -10
package/lib/decorators.tsp
CHANGED
|
@@ -14,7 +14,7 @@ namespace OpenAPI;
|
|
|
14
14
|
* op read(): string;
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
extern dec operationId(target: Operation, operationId: string);
|
|
17
|
+
extern dec operationId(target: Operation, operationId: valueof string);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Attach some custom data to the OpenAPI element generated from this type.
|
|
@@ -30,7 +30,7 @@ extern dec operationId(target: Operation, operationId: string);
|
|
|
30
30
|
* op read(): string;
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
extern dec extension(target: unknown, key: string, value: unknown);
|
|
33
|
+
extern dec extension(target: unknown, key: valueof string, value: unknown);
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Specify that this model is to be treated as the OpenAPI `default` response.
|
|
@@ -59,4 +59,4 @@ extern dec defaultResponse(target: Model);
|
|
|
59
59
|
* op listPets(): Pet[];
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
|
-
extern dec externalDocs(target: unknown, url: string, description?: string);
|
|
62
|
+
extern dec externalDocs(target: unknown, url: valueof string, description?: valueof string);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/openapi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library providing OpenAPI concepts",
|
|
6
6
|
"homepage": "https://microsoft.github.io/typespec",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"!dist/test/**"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@typespec/compiler": "~0.44.0",
|
|
46
|
-
"@typespec/http": "~0.44.0",
|
|
47
|
-
"@typespec/rest": "~0.44.0"
|
|
45
|
+
"@typespec/compiler": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
46
|
+
"@typespec/http": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
47
|
+
"@typespec/rest": "~0.44.0 || >=0.45.0-dev <0.45.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/mocha": "~10.0.0",
|
|
51
51
|
"@types/node": "~18.11.9",
|
|
52
|
-
"@typespec/compiler": "~0.44.0",
|
|
53
|
-
"@typespec/http": "~0.44.0",
|
|
54
|
-
"@typespec/rest": "~0.44.0",
|
|
55
|
-
"@typespec/eslint-config-typespec": "~0.7.0",
|
|
56
|
-
"@typespec/library-linter": "~0.44.0",
|
|
57
|
-
"@typespec/eslint-plugin": "~0.44.0",
|
|
52
|
+
"@typespec/compiler": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
53
|
+
"@typespec/http": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
54
|
+
"@typespec/rest": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
55
|
+
"@typespec/eslint-config-typespec": "~0.7.0 || >=0.8.0-dev <0.8.0",
|
|
56
|
+
"@typespec/library-linter": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
57
|
+
"@typespec/eslint-plugin": "~0.44.0 || >=0.45.0-dev <0.45.0",
|
|
58
58
|
"eslint": "^8.36.0",
|
|
59
59
|
"mocha": "~10.2.0",
|
|
60
60
|
"mocha-junit-reporter": "~2.2.0",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"rimraf": "~5.0.0",
|
|
64
64
|
"typescript": "~5.0.2"
|
|
65
65
|
},
|
|
66
|
+
"dependencies": {},
|
|
66
67
|
"scripts": {
|
|
67
68
|
"clean": "rimraf ./dist ./temp",
|
|
68
69
|
"build": "tsc -p . && npm run lint-typespec-library",
|