@typespec/openapi3 0.62.0-dev.0 → 0.62.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/README.md +8 -10
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -8,9 +8,7 @@ TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol bindin
|
|
|
8
8
|
npm install @typespec/openapi3
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
### Usage
|
|
11
|
+
## Usage
|
|
14
12
|
|
|
15
13
|
1. Via the command line
|
|
16
14
|
|
|
@@ -35,15 +33,15 @@ options:
|
|
|
35
33
|
option: value
|
|
36
34
|
```
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
## Emitter options
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
### `file-type`
|
|
41
39
|
|
|
42
40
|
**Type:** `"yaml" | "json"`
|
|
43
41
|
|
|
44
42
|
If the content should be serialized as YAML or JSON. Default 'yaml', it not specified infer from the `output-file` extension
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
### `output-file`
|
|
47
45
|
|
|
48
46
|
**Type:** `string`
|
|
49
47
|
|
|
@@ -76,27 +74,27 @@ Example Multiple service with versioning
|
|
|
76
74
|
- `openapi.Org1.Service2.v1.0.yaml`
|
|
77
75
|
- `openapi.Org1.Service2.v1.1.yaml`
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
### `new-line`
|
|
80
78
|
|
|
81
79
|
**Type:** `"crlf" | "lf"`
|
|
82
80
|
|
|
83
81
|
Set the newline character for emitting files.
|
|
84
82
|
|
|
85
|
-
|
|
83
|
+
### `omit-unreachable-types`
|
|
86
84
|
|
|
87
85
|
**Type:** `boolean`
|
|
88
86
|
|
|
89
87
|
Omit unreachable types.
|
|
90
88
|
By default all types declared under the service namespace will be included. With this flag on only types references in an operation will be emitted.
|
|
91
89
|
|
|
92
|
-
|
|
90
|
+
### `include-x-typespec-name`
|
|
93
91
|
|
|
94
92
|
**Type:** `"inline-only" | "never"`
|
|
95
93
|
|
|
96
94
|
If the generated openapi types should have the `x-typespec-name` extension set with the name of the TypeSpec type that created it.
|
|
97
95
|
This extension is meant for debugging and should not be depended on.
|
|
98
96
|
|
|
99
|
-
|
|
97
|
+
### `safeint-strategy`
|
|
100
98
|
|
|
101
99
|
**Type:** `"double-int" | "int64"`
|
|
102
100
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/openapi3",
|
|
3
|
-
"version": "0.62.0-dev.
|
|
3
|
+
"version": "0.62.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec",
|
|
6
6
|
"homepage": "https://typespec.io",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@typespec/versioning": "~0.61.0 || >=0.62.0-dev <0.62.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/node": "~22.7.
|
|
54
|
+
"@types/node": "~22.7.5",
|
|
55
55
|
"@types/yargs": "~17.0.33",
|
|
56
56
|
"@typespec/compiler": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
57
57
|
"@typespec/http": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@typespec/openapi": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
60
60
|
"@typespec/rest": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
61
61
|
"@typespec/versioning": "~0.61.0 || >=0.62.0-dev <0.62.0",
|
|
62
|
-
"@vitest/coverage-v8": "^2.1.
|
|
63
|
-
"@vitest/ui": "^2.1.
|
|
62
|
+
"@vitest/coverage-v8": "^2.1.2",
|
|
63
|
+
"@vitest/ui": "^2.1.2",
|
|
64
64
|
"c8": "^10.1.2",
|
|
65
65
|
"cross-env": "~7.0.3",
|
|
66
66
|
"rimraf": "~6.0.1",
|
|
67
|
-
"typescript": "~5.6.
|
|
68
|
-
"vitest": "^2.1.
|
|
67
|
+
"typescript": "~5.6.3",
|
|
68
|
+
"vitest": "^2.1.2",
|
|
69
69
|
"@typespec/tspd": "~0.46.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|