-
Notifications
You must be signed in to change notification settings - Fork 33
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(validation): add manifest validation #274
feat(validation): add manifest validation #274
Conversation
32004ba
to
1ea2e06
Compare
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.
Looks real nice so far, just wanted to double check on the interfaces (since I saw your comment about adding the rest) and around type aliases
Some more stuff after discussion with @brooksmtownsend that we should probably add to this:
|
2a3899d
to
1661e91
Compare
1b64ffd
to
70e50a8
Compare
70e50a8
to
31ad3ea
Compare
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.
A nit or two, a couple requests and a discussion point that I might just be overthinking. This looks great and I love the reusability of the library!
31ad3ea
to
1709fab
Compare
5794742
to
b969e2d
Compare
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.
Excellent job here. Just a few minor blocking things around the publicly exposed crate API and how we return errors to a user
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.
My comments all addressed 👍🏻
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.
My comments all addressed 👍🏻
b969e2d
to
ee19d97
Compare
This commit adds validation functions along with utility accessors to `Manifest` to enable checking WADM manifests for common errors. As the validation functions are exposed they can be used by downstream crates (ex. `wash`) to validate WADM manifests or try to catch errors *before* a manifest is used. Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
ee19d97
to
a5a2d6d
Compare
Leaving it for @brooksmtownsend to merge since he was first reviewer |
Feature or Problem
This commit adds validation functions along with utility accessors to
Manifest
to enable checking WADM manifests for common errors.As the validation functions are exposed they can be used by downstream crates (ex.
wash
) to validate WADM manifests or try to catch errors before a manifest is used.This is up for review in draft state so we can talk about the design -- if it looks good, I'll do the following:
Related Issues
wasmCloud/wasmCloud#2009
Release Information
next
Consumer Impact
Testing
Unit Test(s)
Unit tests with fixtures have been added
Acceptance or Integration
Manual Verification