You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CLI.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,9 @@ create a new version of an api with an openapi spec
120
120
*`--name <NAME>` — api name or id e.g. my-api
121
121
*`--version <VERSION>` — semantic version (e.g. `2.1.5`) or version bump (`patch`, `minor`, `major`, `rc`)
122
122
*`--spec <SPEC>` — path to openapi specification (YAML or JSON format)
123
+
*`--allow-lint-errors` — Allow linting errors to be present in the provided spec [default: false]
124
+
125
+
By default creating a new version with an OpenAPI that contains linting errors is disallowed. If you wish to allow linting errors you may experience issues later with SDK generation or mock servers.
123
126
*`--disable-mock` — disable mock server for new version [default: enabled]
124
127
*`--display <DISPLAY>` — display result as a raw json or prettified
125
128
@@ -161,6 +164,9 @@ updates an existing api version
161
164
*`--version <VERSION>` — version to update (e.g. `2.1.5` or `latest`)
162
165
*`--new-version <NEW_VERSION>` — version to update with (e.g. `2.1.5`)
163
166
*`--spec <SPEC>` — path to openapi spec (yaml or json format) to update with
167
+
*`--allow-lint-errors` — Allow linting errors to be present in the provided spec [default: false]
168
+
169
+
By default using an OpenAPI that contains linting errors is disallowed. If you wish to allow linting errors you may experience issues later with SDK generation or mock servers.
164
170
*`--mock <MOCK>` — enable or disable the mock server
165
171
166
172
Possible values: `true`, `false`
@@ -199,6 +205,9 @@ create a new api
199
205
*`--name <NAME>` — name of api (only alphanumeric characters and dashes, e.g. `my-api`)
200
206
*`--version <VERSION>` — semantic version of initial version (e.g. `0.1.0`)
201
207
*`--spec <SPEC>` — path to openapi spec of initial version (yaml or json format)
208
+
*`--allow-lint-errors` — Allow linting errors to be present in the provided spec [default: false]
209
+
210
+
By default using an OpenAPI that contains linting errors is disallowed. If you wish to allow linting errors you may experience issues later with SDK generation or mock servers.
202
211
*`--disable-mock` — disable mock server for initial version [default: enabled]
203
212
*`--display <DISPLAY>` — display result as a raw json or prettified
204
213
@@ -260,6 +269,7 @@ linting errors gathered from the specification
260
269
*`--version <VERSION>` — API version e.g. v1, latest
261
270
262
271
Default value: `latest`
272
+
*`--errors` — Show errors only
263
273
*`--display <DISPLAY>` — display result as a raw json or prettified
0 commit comments