-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat!: Return actionable errors from Manifest validation #552
base: feat/html-extractors#536
Are you sure you want to change the base?
Conversation
03eccc4
to
43fa48b
Compare
43fa48b
to
6fb4745
Compare
let mut expected = vec![ | ||
"Invalid manifest: Invalid HTTP method", | ||
"Invalid manifest: Unsupported HTTP status", | ||
"Invalid manifest: Token `<% MISSING_TOKEN %>` not declared in `vars`", | ||
"Manifest HTTP error: HTTP header mismatch: expected Bearer <% MISSING_TOKEN %>, actual Bearer invalid-token", | ||
"Manifest HTTP error: HTTP header mismatch: expected invalid/type, actual application/json", | ||
"Template error: Variable missing for key: UNUSED_TOKEN", | ||
"Manifest HTTP error: HTTP method mismatch: expected POST, actual INVALID_METHOD", | ||
"Manifest HTTP error: HTTP URL mismatch: expected https://api.example.com, actual ftp://invalid-scheme.com", | ||
"Extraction failed: No data to match against" | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the kind of feedback the end-user can expect to receive from the notary.
cc: @drewjenkins
6fb4745
to
d50f079
Compare
The failing tests can be ignored, because they don't exist in main anymore. |
@piotr-roslaniec #556 may be worth considering alongside this PR and with the rebase that will happen. What do you think? |
@Autoparallel I can address this in the next PR |
@piotr-roslaniec sounds good, sir! |
57741d9
to
e6399b1
Compare
Based on #547 - Please review it first
Related Issues
Changes
ManifestValidationResult
to aggregate validation errors and extracted valuesRequired Reviews
Minimum number of reviews before merge: 2