Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves #1125 trim leading and trailing whitespace from JSON values #1222

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

jdaigneau5
Copy link
Collaborator

Closes Issue #1125

Summary

Added middleware on CVE related endpoints that trims leading and trailing whitespace from JSON values

Important Changes

middleware.js

  • Created trimJSONWhitespace function.

cve.controller/index.js

  • Added trimJSONWhitespace on POST/PUT endpoints

Testing

Steps to manually test updated functionality, if possible

  • 1) Run unit-tests
  • 2) Test manually by submitting JSON with leading/trailing whitespace

@jdaigneau5 jdaigneau5 requested a review from david-rocca April 26, 2024 17:58
@david-rocca
Copy link
Collaborator

LGTM

@david-rocca david-rocca merged commit 36e9716 into dev Apr 30, 2024
9 checks passed
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.

2 participants