File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# # This script tests and validates rules APIs
2
2
3
+ spectral_version=` cat " ../spectral.version" `
4
+ spectral --version || npm install -g --force @stoplight/spectral-cli@$spectral_version
5
+
3
6
# # Fetch current managed services APIS from sdk repository
4
7
# # This apis can be used for testing
5
8
# # Script needs to run in the test working directory
@@ -11,17 +14,17 @@ file='kas-fleet-manager.yaml'
11
14
12
15
wget -P $folder ${baseUrl}${file}
13
16
echo " linting $file OAS file"
14
- yarn spectral lint $folder /$file -v -r $spectralConfig
17
+ spectral lint $folder /$file -v -r $spectralConfig
15
18
16
19
file=' srs-fleet-manager.json'
17
20
wget -P $folder ${baseUrl}${file}
18
21
echo " linting $file OAS file"
19
- yarn spectral lint $folder /$file -v -r $spectralConfig
22
+ spectral lint $folder /$file -v -r $spectralConfig
20
23
21
24
file=' connector_mgmt.yaml'
22
25
wget -P $folder ${baseUrl}${file}
23
26
echo " linting $file OAS file"
24
- yarn spectral lint $folder /$file -v -r $spectralConfig
27
+ spectral lint $folder /$file -v -r $spectralConfig
25
28
26
29
# # Updates made to the following need to be refected in their respective .openapi OAS files before the linting can pass and added to CI
27
30
You can’t perform that action at this time.
0 commit comments