Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@ jobs:
- name: Validate OpenAPI JSON
run: |
echo "Validating openapi.json..."
curl --fail --request POST http://localhost:8080/validator/debug \
response=$(curl --silent --request POST http://localhost:8080/validator/debug \
--header "Content-Type: application/json" \
--data-binary @openapi.json
echo "✅ openapi.json validation passed"
--data-binary @openapi.json)

echo "Validation response: $response"

# Check if response contains validation errors
if echo "$response" | grep -q '"messages"'; then
echo "❌ OpenAPI validation failed with errors:"
echo "$response" | python3 -m json.tool
exit 1
else
echo "✅ openapi.json validation passed"
fi

- name: Cleanup
if: always()
Expand Down