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

Added request information to all non-schema validation errors #64

Conversation

jacobm-splunk
Copy link
Contributor

I added some request information to the validation error struct.

Rather than modifying this in constructors, I figured it would be a lot easier to populate this as the last step during validation. If that's not the right approach, I can convert it to a constructor oriented method.

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just needs a rebase

@jacobm-splunk
Copy link
Contributor Author

@daveshanley Thanks Dave, just rebased.

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.68%. Comparing base (f866c7b) to head (a5a7cc2).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
- Coverage   98.96%   97.68%   -1.28%     
==========================================
  Files          19       19              
  Lines        1156     1731     +575     
==========================================
+ Hits         1144     1691     +547     
- Misses         12       40      +28     
Flag Coverage Δ
unittests 97.68% <100.00%> (-1.28%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacobm-splunk jacobm-splunk force-pushed the jacobm/added-request-info-to-validation-error branch from f4047ea to a5a7cc2 Compare April 12, 2024 17:33
@daveshanley daveshanley merged commit b3f6e33 into pb33f:main Apr 12, 2024
2 of 3 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