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

Move validation messages to each reference #396

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

cjbarth
Copy link
Contributor

@cjbarth cjbarth commented Oct 6, 2023

Validation errors were class-wide making it unnecessarily difficult to match an error with the reference that caused it. This PR moves those errors to the reference on which they occurred.

Additionally, the validation error for a checkSignature() was changed to throw instead of adding to a global validationErrors object.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #396 (d5dc83c) into master (0d01641) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #396      +/-   ##
==========================================
- Coverage   74.14%   74.09%   -0.06%     
==========================================
  Files           9        9              
  Lines         882      880       -2     
  Branches      233      233              
==========================================
- Hits          654      652       -2     
  Misses        135      135              
  Partials       93       93              
Files Coverage Δ
src/signed-xml.ts 76.58% <100.00%> (-0.12%) ⬇️
src/types.ts 90.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cjbarth cjbarth merged commit d98128a into node-saml:master Oct 6, 2023
9 checks passed
@cjbarth cjbarth deleted the validation-errors branch October 6, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant