Skip to content

Commit 3159c36

Browse files
committed
fix: validate remote specs in validate-only mode
1 parent 37f5fa6 commit 3159c36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate-open-api.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ if [ -f "$remote_specs_file" ]; then
8181
filename="${output_dir}/alchemy/rest/${name}.json"
8282
(
8383
if [ "$validate_only" = true ]; then
84-
echo "Skipping remote spec: ${name} (validate-only mode)"
84+
if ! pnpm exec redocly lint "$url" --format json; then
85+
exit 1
86+
fi
8587
else
8688
if ! pnpm exec redocly bundle "$url" --dereferenced --output "$filename" --ext json --remove-unused-components; then
8789
exit 1

0 commit comments

Comments
 (0)