Loading .jenkins.sh +10 −9 Original line number Diff line number Diff line #!/bin/bash specfiles=$(ls | egrep -i "^Mp1.(json|yaml)") specfiles=$(ls | egrep "^[^.]*.(json|yaml)") fres=0 for i in $specfiles ; do echo "-- Validating OpenAPI file $i..." swagger-tools validate $i echo "-- Validating and linting OpenAPI file $i..." swagger-cli validate "$i" res=$? fres=$(($fres||$res)) echo -e "-- Validator returned $res.\n" speccy lint "$i" res2=$? fres=$(($fres||$res||$res2)) echo "--- Validator returned $res, linter returned $res2." done echo "-- Final validator returns $fres." echo "-- Final validation returns $fres." exit $fres No newline at end of file Mp1.json +8 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,7 @@ "description": "Time to live value", "type": "integer", "format": "uint32", "example": 300 "example": "?" }, "DnsRule": { "description": "This type represents the general information of a DNS rule.", Loading Loading @@ -1144,7 +1144,13 @@ ], "properties": { "grantTypes": { "description": "List of supported OAuth 2.0 grant types.", "type": "array", "minItems": 1, "maxItems": 4, "items": { "$ref": "#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes" } }, "tokenEndpoint": { "$ref": "#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint" Loading Mp1.yaml +7 −1 Original line number Diff line number Diff line Loading @@ -835,6 +835,12 @@ components: - tokenEndpoint properties: grantTypes: description: >- List of supported OAuth 2.0 grant types. type: array minItems: 1 maxItems: 4 items: $ref: '#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes' tokenEndpoint: $ref: '#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint' Loading Loading
.jenkins.sh +10 −9 Original line number Diff line number Diff line #!/bin/bash specfiles=$(ls | egrep -i "^Mp1.(json|yaml)") specfiles=$(ls | egrep "^[^.]*.(json|yaml)") fres=0 for i in $specfiles ; do echo "-- Validating OpenAPI file $i..." swagger-tools validate $i echo "-- Validating and linting OpenAPI file $i..." swagger-cli validate "$i" res=$? fres=$(($fres||$res)) echo -e "-- Validator returned $res.\n" speccy lint "$i" res2=$? fres=$(($fres||$res||$res2)) echo "--- Validator returned $res, linter returned $res2." done echo "-- Final validator returns $fres." echo "-- Final validation returns $fres." exit $fres No newline at end of file
Mp1.json +8 −2 Original line number Diff line number Diff line Loading @@ -890,7 +890,7 @@ "description": "Time to live value", "type": "integer", "format": "uint32", "example": 300 "example": "?" }, "DnsRule": { "description": "This type represents the general information of a DNS rule.", Loading Loading @@ -1144,7 +1144,13 @@ ], "properties": { "grantTypes": { "description": "List of supported OAuth 2.0 grant types.", "type": "array", "minItems": 1, "maxItems": 4, "items": { "$ref": "#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes" } }, "tokenEndpoint": { "$ref": "#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint" Loading
Mp1.yaml +7 −1 Original line number Diff line number Diff line Loading @@ -835,6 +835,12 @@ components: - tokenEndpoint properties: grantTypes: description: >- List of supported OAuth 2.0 grant types. type: array minItems: 1 maxItems: 4 items: $ref: '#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes' tokenEndpoint: $ref: '#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint' Loading