Skip to content

Commit 90224ce

Browse files
committed
ci: addition of more apis to the CI
1 parent e29eec9 commit 90224ce

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spectral/scripts/rules.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@
77

88
echo "fetching kas-fleet-manager from main"
99
wget -P .openapi https://raw.githubusercontent.com/redhat-developer/app-services-sdk-js/main/.openapi/kas-fleet-manager.yaml
10-
10+
echo "fetching connector_mgmgt from main"
11+
wget -P .openapi https://github.com/redhat-developer/app-services-sdk-js/blob/main/.openapi/connector_mgmt.yaml
12+
echo "fetching srs from main"
13+
wget -P .openapi https://github.com/redhat-developer/app-services-sdk-js/blob/main/.openapi/srs-fleet-manager.json
14+
echo "fetching smartevents from main"
15+
wget -P .openapi https://github.com/redhat-developer/app-services-sdk-js/blob/main/.openapi/smartevents-mgmt.yaml
16+
echo "fetching kafka-admin from main"
17+
wget -P .openapi https://github.com/redhat-developer/app-services-sdk-js/blob/main/.openapi/kafka-admin-rest.yaml
1118
## TODO add more apis
1219

20+
## linting the fetched apis
21+
yarn spectral lint .openapi/connector_mgmt.yaml -v -r ./examples/.spectral-local.yaml
1322
yarn spectral lint .openapi/kas-fleet-manager.yaml -v -r ./examples/.spectral-local.yaml
23+
yarn spectral lint .openapi/srs-fleet-manager.json -v -r ./examples/.spectral-local.yaml
24+
yarn spectral lint .openapi/smartevents-mgmt.yaml -v -r ./examples/.spectral-local.yaml
25+
yarn spectral lint .openapi/kafka-admin-rest.yaml -v -r ./examples/.spectral-local.yaml

0 commit comments

Comments
 (0)