-
Notifications
You must be signed in to change notification settings - Fork 6
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: add validator #8
Conversation
Signed-off-by: Jintao Zhang <[email protected]>
internal/pkg/validator/validator.go
Outdated
return false, fmt.Errorf(errWrap, resourceType, nameOrID, err) | ||
} | ||
defer resp.Body.Close() | ||
return resp.StatusCode == http.StatusOK, nil |
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.
@lingsamuel I think sdk can support this API.
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.
I think we should parse the invalid info from the response body and return as an error.
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.
OK, let me check the response content of the APISIX API
Signed-off-by: Jintao Zhang <[email protected]>
2e3f581
to
04e78d0
Compare
Signed-off-by: Jintao Zhang <[email protected]>
Signed-off-by: Jintao Zhang <[email protected]>
Signed-off-by: Jintao Zhang <[email protected]>
Signed-off-by: Jintao Zhang <[email protected]>
No description provided.