Skip to content

Commit 12cc6dc

Browse files
committed
Fix document validation checking the wrong files
1 parent 2dee241 commit 12cc6dc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.redocly.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ extends:
44
rules:
55
operation-summary: off
66
operation-operationId: off
7+
no-unused-components: off
8+
no-server-example.com: off

convert-and-validate-specs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ fi
3131
# Up convert Swagger file back to OpenAPI 3.1 again, and output as JSON
3232
echo 'Converting 3.1 to Swagger spec back to 3.1 again'
3333
docker run --rm -i openapi-spec-converter:latest -t 3.1 -f json \
34-
< output/31-spec-with-differences-from-30.back-to-31.yaml \
35-
> output/31-spec-with-differences-from-30.converted-swagger.yaml
34+
< output/31-spec-with-differences-from-30.converted-swagger.yaml \
35+
> output/31-spec-with-differences-from-30.back-to-31.json
3636

3737
echo 'Validating 3.1 spec converted back from Swagger'
38-
if ! node_modules/.bin/redocly lint output/31-spec-with-differences-from-30.converted-swagger.yaml 2>&1; then
38+
if ! node_modules/.bin/redocly lint output/31-spec-with-differences-from-30.back-to-31.json 2>&1; then
3939
exit_code=1
4040
fi
4141

0 commit comments

Comments
 (0)