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

Golang library for validating package against specs #10

Closed
wants to merge 32 commits into from

Conversation

ycombinator
Copy link
Contributor

@ycombinator ycombinator commented Aug 6, 2020

This PR creates a go module that provides an API for validating a package against the appropriate specification version.

Usage

import "github.com/elastic/package-spec/code/go/pkg/validator"

validationErrs := validator.ValidateFromPath("/path/to/package/root/folder")

where validationErrs will implement the error interface type.

Resolves #4.

Author TODO

  • Implement folder structure validation
  • Implement file content validation

@ycombinator ycombinator marked this pull request as draft August 6, 2020 00:13
@ycombinator
Copy link
Contributor Author

I decided to break up this PR into smaller PRs for easier review. So I'm closing it in favor of #12, #14, and a future PR to implement file content validation.

@ycombinator ycombinator closed this Aug 6, 2020
@ycombinator ycombinator deleted the lib-golang branch August 6, 2020 23:41
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.

Create golang library for validating packages against specs
1 participant