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

Add audit interface for validation API #712

Closed
wants to merge 1 commit into from
Closed

Add audit interface for validation API #712

wants to merge 1 commit into from

Commits on Jul 18, 2017

  1. Add audit interface for validation API

    Fix #686.
    
    Each content validation function should return both hard error and
    warned errors, like:
    ```
    func validateDescriptor(r io.Reader) ([]error, error)
    ```
    
    Add a `ValidationAudit` interface on Validate API argument. This
    interface allows consumer to implement `Warns` method, to decide how to
    handle warned errors.
    
    Signed-off-by: xiekeyang <xiekeyang@huawei.com>
    xiekeyang committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    19f089f View commit details
    Browse the repository at this point in the history