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

RFE: Allow api return code of errors #150

Open
camilamacedo86 opened this issue Aug 30, 2021 · 1 comment
Open

RFE: Allow api return code of errors #150

camilamacedo86 opened this issue Aug 30, 2021 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. triaged
Milestone

Comments

@camilamacedo86
Copy link
Contributor

Describe the problem you need a feature to resolve.

Currently, we are able to validate the bundle against scenarios to check if they are not ok to be published and then, we receive a list of errors and/or warnings. However, we need to grep by text to know the kind of errors and warnings that came out to do specific actions according to them.

Describe the solution you'd like.

I'd like to see the implementation of the api allowing us to define code for errors. In this way, we could check by these codes instead of grepping a text that can be easily changed/improved. One example of what is expected here is the HTTP implementation with code errors which allow us to easily check them.

@kevinrizza
Copy link
Member

This to me seems like a reasonable change to include in the existing validation spec. I do think it would involve us coming up with a very explicit spec of the hierarchy and type of validation errors, which does not currently exist, even before we could create such a mapping.

I also want to point out that this spec would only apply to registry+v1 bundle images, and in the future when we support other bundle types we will probably need to have a separate spec and validation mechanism.

@kevinrizza kevinrizza added triaged kind/feature Categorizes issue or PR as related to a new feature. labels Sep 2, 2021
@kevinrizza kevinrizza added this to the backlog milestone Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. triaged
Projects
None yet
Development

No branches or pull requests

2 participants