swaggerhub-cli 0.8.0 → 0.8.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 +39 -39
- package/oclif.manifest.json +1 -1
- package/package.json +9 -9
- package/src/commands/api/validate/index.js +8 -0
package/README.md
CHANGED
|
@@ -184,7 +184,7 @@ EXAMPLES
|
|
|
184
184
|
$ swaggerhub api:create organization/api/1.0.0 --published=publish --setdefault --file api.json
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
-
_See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
187
|
+
_See code: [src/commands/api/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/create.js)_
|
|
188
188
|
|
|
189
189
|
## `swaggerhub api:delete`
|
|
190
190
|
|
|
@@ -213,7 +213,7 @@ EXAMPLES
|
|
|
213
213
|
$ swaggerhub api:delete organization/api --force
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
_See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
216
|
+
_See code: [src/commands/api/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/delete.js)_
|
|
217
217
|
|
|
218
218
|
## `swaggerhub api:get`
|
|
219
219
|
|
|
@@ -243,7 +243,7 @@ EXAMPLES
|
|
|
243
243
|
$ swaggerhub api:get organization/api/1.0.0 --json
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
-
_See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
246
|
+
_See code: [src/commands/api/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/get.js)_
|
|
247
247
|
|
|
248
248
|
## `swaggerhub api:publish`
|
|
249
249
|
|
|
@@ -269,7 +269,7 @@ EXAMPLES
|
|
|
269
269
|
$ swaggerhub api:publish organization/api/1.0.0 --force
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
-
_See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
272
|
+
_See code: [src/commands/api/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/publish.js)_
|
|
273
273
|
|
|
274
274
|
## `swaggerhub api:setdefault`
|
|
275
275
|
|
|
@@ -292,7 +292,7 @@ EXAMPLES
|
|
|
292
292
|
$ swaggerhub api:setdefault organization/api/2.0.0
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
-
_See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
295
|
+
_See code: [src/commands/api/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/setdefault.js)_
|
|
296
296
|
|
|
297
297
|
## `swaggerhub api:unpublish`
|
|
298
298
|
|
|
@@ -315,7 +315,7 @@ EXAMPLES
|
|
|
315
315
|
$ swaggerhub api:unpublish organization/api/1.0.0
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
-
_See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
318
|
+
_See code: [src/commands/api/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/unpublish.js)_
|
|
319
319
|
|
|
320
320
|
## `swaggerhub api:update`
|
|
321
321
|
|
|
@@ -359,7 +359,7 @@ EXAMPLES
|
|
|
359
359
|
$ swaggerhub api:update organization/api/1.0.0 --visibility=private
|
|
360
360
|
```
|
|
361
361
|
|
|
362
|
-
_See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
362
|
+
_See code: [src/commands/api/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/update.js)_
|
|
363
363
|
|
|
364
364
|
## `swaggerhub api:validate`
|
|
365
365
|
|
|
@@ -393,7 +393,7 @@ EXAMPLES
|
|
|
393
393
|
$ swaggerhub api:validate --fail-on-critical --json organization/api
|
|
394
394
|
```
|
|
395
395
|
|
|
396
|
-
_See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
396
|
+
_See code: [src/commands/api/validate/index.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/validate/index.js)_
|
|
397
397
|
|
|
398
398
|
## `swaggerhub api:validate:local`
|
|
399
399
|
|
|
@@ -423,7 +423,7 @@ EXAMPLES
|
|
|
423
423
|
$ swaggerhub api:validate:local --organization myOrg --file ./my-api/json --fail-on-critical --json
|
|
424
424
|
```
|
|
425
425
|
|
|
426
|
-
_See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
426
|
+
_See code: [src/commands/api/validate/local.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/api/validate/local.js)_
|
|
427
427
|
|
|
428
428
|
## `swaggerhub configure`
|
|
429
429
|
|
|
@@ -446,7 +446,7 @@ DESCRIPTION
|
|
|
446
446
|
settings.
|
|
447
447
|
```
|
|
448
448
|
|
|
449
|
-
_See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
449
|
+
_See code: [src/commands/configure.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/configure.js)_
|
|
450
450
|
|
|
451
451
|
## `swaggerhub domain:create`
|
|
452
452
|
|
|
@@ -487,7 +487,7 @@ EXAMPLES
|
|
|
487
487
|
$ swaggerhub domain:create organization/domain/1.0.0 --publish --setdefault --file domain.json
|
|
488
488
|
```
|
|
489
489
|
|
|
490
|
-
_See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
490
|
+
_See code: [src/commands/domain/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/create.js)_
|
|
491
491
|
|
|
492
492
|
## `swaggerhub domain:delete`
|
|
493
493
|
|
|
@@ -516,7 +516,7 @@ EXAMPLES
|
|
|
516
516
|
$ swaggerhub domain:delete organization/domain --force
|
|
517
517
|
```
|
|
518
518
|
|
|
519
|
-
_See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
519
|
+
_See code: [src/commands/domain/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/delete.js)_
|
|
520
520
|
|
|
521
521
|
## `swaggerhub domain:get`
|
|
522
522
|
|
|
@@ -545,7 +545,7 @@ EXAMPLES
|
|
|
545
545
|
$ swaggerhub domain:get organization/domain/1.0.0 --json
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
_See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
548
|
+
_See code: [src/commands/domain/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/get.js)_
|
|
549
549
|
|
|
550
550
|
## `swaggerhub domain:publish`
|
|
551
551
|
|
|
@@ -568,7 +568,7 @@ EXAMPLES
|
|
|
568
568
|
$ swaggerhub domain:publish organization/domain/1.0.0
|
|
569
569
|
```
|
|
570
570
|
|
|
571
|
-
_See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
571
|
+
_See code: [src/commands/domain/publish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/publish.js)_
|
|
572
572
|
|
|
573
573
|
## `swaggerhub domain:setdefault`
|
|
574
574
|
|
|
@@ -591,7 +591,7 @@ EXAMPLES
|
|
|
591
591
|
$ swaggerhub domain:setdefault organization/domain/2.0.0
|
|
592
592
|
```
|
|
593
593
|
|
|
594
|
-
_See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
594
|
+
_See code: [src/commands/domain/setdefault.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/setdefault.js)_
|
|
595
595
|
|
|
596
596
|
## `swaggerhub domain:unpublish`
|
|
597
597
|
|
|
@@ -614,7 +614,7 @@ EXAMPLES
|
|
|
614
614
|
$ swaggerhub domain:unpublish organization/domain/1.0.0
|
|
615
615
|
```
|
|
616
616
|
|
|
617
|
-
_See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
617
|
+
_See code: [src/commands/domain/unpublish.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/unpublish.js)_
|
|
618
618
|
|
|
619
619
|
## `swaggerhub domain:update`
|
|
620
620
|
|
|
@@ -658,7 +658,7 @@ EXAMPLES
|
|
|
658
658
|
$ swaggerhub domain:update organization/domain/1.0.0 --visibility=private
|
|
659
659
|
```
|
|
660
660
|
|
|
661
|
-
_See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
661
|
+
_See code: [src/commands/domain/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/domain/update.js)_
|
|
662
662
|
|
|
663
663
|
## `swaggerhub help`
|
|
664
664
|
|
|
@@ -678,7 +678,7 @@ DESCRIPTION
|
|
|
678
678
|
Display help for swaggerhub.
|
|
679
679
|
```
|
|
680
680
|
|
|
681
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.
|
|
681
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.15/src/commands/help.ts)_
|
|
682
682
|
|
|
683
683
|
## `swaggerhub integration:create`
|
|
684
684
|
|
|
@@ -706,7 +706,7 @@ EXAMPLES
|
|
|
706
706
|
$ swaggerhub integration:create organization/api/1.0.0 --file config.json
|
|
707
707
|
```
|
|
708
708
|
|
|
709
|
-
_See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
709
|
+
_See code: [src/commands/integration/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/create.js)_
|
|
710
710
|
|
|
711
711
|
## `swaggerhub integration:delete`
|
|
712
712
|
|
|
@@ -729,7 +729,7 @@ EXAMPLES
|
|
|
729
729
|
$ swaggerhub integration:delete organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
730
730
|
```
|
|
731
731
|
|
|
732
|
-
_See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
732
|
+
_See code: [src/commands/integration/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/delete.js)_
|
|
733
733
|
|
|
734
734
|
## `swaggerhub integration:execute`
|
|
735
735
|
|
|
@@ -752,7 +752,7 @@ EXAMPLES
|
|
|
752
752
|
$ swaggerhub integration:execute organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
753
753
|
```
|
|
754
754
|
|
|
755
|
-
_See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
755
|
+
_See code: [src/commands/integration/execute.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/execute.js)_
|
|
756
756
|
|
|
757
757
|
## `swaggerhub integration:get`
|
|
758
758
|
|
|
@@ -775,7 +775,7 @@ EXAMPLES
|
|
|
775
775
|
$ swaggerhub integration:get organization/api/1.0.0/503c2db6-448a-4678-a310-f465429e9704
|
|
776
776
|
```
|
|
777
777
|
|
|
778
|
-
_See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
778
|
+
_See code: [src/commands/integration/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/get.js)_
|
|
779
779
|
|
|
780
780
|
## `swaggerhub integration:list`
|
|
781
781
|
|
|
@@ -798,7 +798,7 @@ EXAMPLES
|
|
|
798
798
|
$ swaggerhub integration:list organization/api/1.0.0
|
|
799
799
|
```
|
|
800
800
|
|
|
801
|
-
_See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
801
|
+
_See code: [src/commands/integration/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/list.js)_
|
|
802
802
|
|
|
803
803
|
## `swaggerhub integration:update`
|
|
804
804
|
|
|
@@ -822,7 +822,7 @@ EXAMPLES
|
|
|
822
822
|
$ swaggerhub integration:update organization/api/1.0.0/503c2db6-448a-4678-abcd-0123456789abc --file config.json
|
|
823
823
|
```
|
|
824
824
|
|
|
825
|
-
_See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
825
|
+
_See code: [src/commands/integration/update.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/integration/update.js)_
|
|
826
826
|
|
|
827
827
|
## `swaggerhub plugins`
|
|
828
828
|
|
|
@@ -845,7 +845,7 @@ EXAMPLES
|
|
|
845
845
|
$ swaggerhub plugins
|
|
846
846
|
```
|
|
847
847
|
|
|
848
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
848
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/index.ts)_
|
|
849
849
|
|
|
850
850
|
## `swaggerhub plugins:install`
|
|
851
851
|
|
|
@@ -910,7 +910,7 @@ EXAMPLES
|
|
|
910
910
|
$ swaggerhub plugins:inspect myplugin
|
|
911
911
|
```
|
|
912
912
|
|
|
913
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
913
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/inspect.ts)_
|
|
914
914
|
|
|
915
915
|
## `swaggerhub plugins:install`
|
|
916
916
|
|
|
@@ -950,7 +950,7 @@ EXAMPLES
|
|
|
950
950
|
$ swaggerhub plugins:install someuser/someplugin
|
|
951
951
|
```
|
|
952
952
|
|
|
953
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
953
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/install.ts)_
|
|
954
954
|
|
|
955
955
|
## `swaggerhub plugins:link`
|
|
956
956
|
|
|
@@ -979,7 +979,7 @@ EXAMPLES
|
|
|
979
979
|
$ swaggerhub plugins:link myplugin
|
|
980
980
|
```
|
|
981
981
|
|
|
982
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
982
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/link.ts)_
|
|
983
983
|
|
|
984
984
|
## `swaggerhub plugins:uninstall`
|
|
985
985
|
|
|
@@ -1027,7 +1027,7 @@ ALIASES
|
|
|
1027
1027
|
$ swaggerhub plugins:remove
|
|
1028
1028
|
```
|
|
1029
1029
|
|
|
1030
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
1030
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/uninstall.ts)_
|
|
1031
1031
|
|
|
1032
1032
|
## `swaggerhub plugins:uninstall`
|
|
1033
1033
|
|
|
@@ -1068,7 +1068,7 @@ DESCRIPTION
|
|
|
1068
1068
|
Update installed plugins.
|
|
1069
1069
|
```
|
|
1070
1070
|
|
|
1071
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.
|
|
1071
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.1.8/src/commands/plugins/update.ts)_
|
|
1072
1072
|
|
|
1073
1073
|
## `swaggerhub project:api:add`
|
|
1074
1074
|
|
|
@@ -1092,7 +1092,7 @@ EXAMPLES
|
|
|
1092
1092
|
$ swaggerhub project:api:add organization/project_name my_api
|
|
1093
1093
|
```
|
|
1094
1094
|
|
|
1095
|
-
_See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1095
|
+
_See code: [src/commands/project/api/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/api/add.js)_
|
|
1096
1096
|
|
|
1097
1097
|
## `swaggerhub project:api:remove`
|
|
1098
1098
|
|
|
@@ -1116,7 +1116,7 @@ EXAMPLES
|
|
|
1116
1116
|
$ swaggerhub project:api:remove organization/project_name my_api
|
|
1117
1117
|
```
|
|
1118
1118
|
|
|
1119
|
-
_See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1119
|
+
_See code: [src/commands/project/api/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/api/remove.js)_
|
|
1120
1120
|
|
|
1121
1121
|
## `swaggerhub project:create`
|
|
1122
1122
|
|
|
@@ -1152,7 +1152,7 @@ EXAMPLES
|
|
|
1152
1152
|
$ swaggerhub project:create organization/new_project_name -a "testapi1" -d "testdomain3" --description "description"
|
|
1153
1153
|
```
|
|
1154
1154
|
|
|
1155
|
-
_See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1155
|
+
_See code: [src/commands/project/create.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/create.js)_
|
|
1156
1156
|
|
|
1157
1157
|
## `swaggerhub project:delete`
|
|
1158
1158
|
|
|
@@ -1175,7 +1175,7 @@ EXAMPLES
|
|
|
1175
1175
|
$ swaggerhub project:delete organization/project_name
|
|
1176
1176
|
```
|
|
1177
1177
|
|
|
1178
|
-
_See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1178
|
+
_See code: [src/commands/project/delete.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/delete.js)_
|
|
1179
1179
|
|
|
1180
1180
|
## `swaggerhub project:domain:add`
|
|
1181
1181
|
|
|
@@ -1199,7 +1199,7 @@ EXAMPLES
|
|
|
1199
1199
|
$ swaggerhub project:domain:add organization/project_name my_domain
|
|
1200
1200
|
```
|
|
1201
1201
|
|
|
1202
|
-
_See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1202
|
+
_See code: [src/commands/project/domain/add.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/domain/add.js)_
|
|
1203
1203
|
|
|
1204
1204
|
## `swaggerhub project:domain:remove`
|
|
1205
1205
|
|
|
@@ -1223,7 +1223,7 @@ EXAMPLES
|
|
|
1223
1223
|
$ swaggerhub project:domain:remove organization/project_name my_domain
|
|
1224
1224
|
```
|
|
1225
1225
|
|
|
1226
|
-
_See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1226
|
+
_See code: [src/commands/project/domain/remove.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/domain/remove.js)_
|
|
1227
1227
|
|
|
1228
1228
|
## `swaggerhub project:get`
|
|
1229
1229
|
|
|
@@ -1246,7 +1246,7 @@ EXAMPLES
|
|
|
1246
1246
|
$ swaggerhub project:get organization/project_name
|
|
1247
1247
|
```
|
|
1248
1248
|
|
|
1249
|
-
_See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1249
|
+
_See code: [src/commands/project/get.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/get.js)_
|
|
1250
1250
|
|
|
1251
1251
|
## `swaggerhub project:list`
|
|
1252
1252
|
|
|
@@ -1271,7 +1271,7 @@ EXAMPLES
|
|
|
1271
1271
|
$ swaggerhub project:list organization
|
|
1272
1272
|
```
|
|
1273
1273
|
|
|
1274
|
-
_See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1274
|
+
_See code: [src/commands/project/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/list.js)_
|
|
1275
1275
|
|
|
1276
1276
|
## `swaggerhub project:member:list`
|
|
1277
1277
|
|
|
@@ -1294,7 +1294,7 @@ EXAMPLES
|
|
|
1294
1294
|
$ swaggerhub project:member:list organisation/project_name
|
|
1295
1295
|
```
|
|
1296
1296
|
|
|
1297
|
-
_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.
|
|
1297
|
+
_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.8.1/src/commands/project/member/list.js)_
|
|
1298
1298
|
<!-- commandsstop -->
|
|
1299
1299
|
|
|
1300
1300
|
# Plugins
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swaggerhub-cli",
|
|
3
3
|
"description": "SwaggerHub CLI",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"author": "SmartBear",
|
|
6
6
|
"bin": {
|
|
7
7
|
"swaggerhub": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/SmartBear/swaggerhub-cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@oclif/core": "^2.
|
|
12
|
-
"@oclif/plugin-help": "^5.2.
|
|
13
|
-
"@oclif/plugin-plugins": "^3.1.
|
|
11
|
+
"@oclif/core": "^2.11.5",
|
|
12
|
+
"@oclif/plugin-help": "^5.2.15",
|
|
13
|
+
"@oclif/plugin-plugins": "^3.1.8",
|
|
14
14
|
"deep-extend": "^0.6.0",
|
|
15
15
|
"fs-extra": "^11.1.1",
|
|
16
16
|
"inquirer": "^8.2.5",
|
|
17
17
|
"js-yaml": "^4.1.0",
|
|
18
18
|
"json-templates": "^5.0.0",
|
|
19
19
|
"node-fetch": "^2.6.12",
|
|
20
|
-
"semver": "^7.5.
|
|
20
|
+
"semver": "^7.5.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@oclif/test": "^2.
|
|
23
|
+
"@oclif/test": "^2.4.2",
|
|
24
24
|
"chai": "^4.3.7",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.46.0",
|
|
26
26
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
27
27
|
"eslint-plugin-immutable": "^1.0.0",
|
|
28
28
|
"eslint-plugin-mocha": "^10.1.0",
|
|
29
29
|
"eslint-plugin-node": "^11.1.0",
|
|
30
|
-
"globby": "^13.2.
|
|
30
|
+
"globby": "^13.2.2",
|
|
31
31
|
"husky": "^8.0.3",
|
|
32
32
|
"mocha": "^10.2.0",
|
|
33
|
-
"nock": "^13.3.
|
|
33
|
+
"nock": "^13.3.2",
|
|
34
34
|
"nyc": "^15.1.0",
|
|
35
35
|
"rewire": "^6.0.0",
|
|
36
36
|
"tmp": "^0.2.1"
|
|
@@ -11,6 +11,7 @@ class ValidateCommand extends BaseValidateCommand {
|
|
|
11
11
|
const { args, flags } = await this.parse(ValidateCommand)
|
|
12
12
|
const apiPath = getApiIdentifierArg(args)
|
|
13
13
|
const validPath = await this.ensureVersion(apiPath)
|
|
14
|
+
await this.checkApiExists(validPath)
|
|
14
15
|
// eslint-disable-next-line immutable/no-let
|
|
15
16
|
let validationResult = await this.getValidationResult(validPath)
|
|
16
17
|
// Required to support On-Prem 2.4.1
|
|
@@ -21,6 +22,13 @@ class ValidateCommand extends BaseValidateCommand {
|
|
|
21
22
|
this.exitWithCode(flags, validationResult)
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
checkApiExists(apiPath) {
|
|
26
|
+
return this.executeHttp({
|
|
27
|
+
execute: () => getApi([apiPath]),
|
|
28
|
+
options: { resolveStatus: [200] }
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
getValidationResult(apiPath) {
|
|
25
33
|
return this.executeHttp({
|
|
26
34
|
execute: () => getApi([apiPath, 'standardization']),
|