Skip to content

Validate empty fields in swag data - #1317

Open
jaitak2121-spec wants to merge 1 commit into
swapagarwal:masterfrom
jaitak2121-spec:fix-swag-data-validation
Open

jaitak2121-spec wants to merge 1 commit into
swapagarwal:masterfrom
jaitak2121-spec:fix-swag-data-validation

Conversation

@jaitak2121-spec

Copy link
Copy Markdown

Summary

  • Add checks to reject swag opportunity names, references, and image paths that are empty or contain only whitespace.
  • Ensure every tag is a nonempty string.

Testing

  • npx mocha --no-config --require chai/register-expect test/functional/data.spec.js --grep "data.json is valid" — passed.
  • git diff --check — passed.

The full functional test suite currently reports failures in external URL and image checks involving timeouts, HTTP errors, SSL/network errors, and an unsupported image format. These failures have not been verified as pre-existing and are not claimed as passing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant