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 in check for field existence when applying outbound rules #28

Open
tylertreat-wf opened this issue Dec 30, 2014 · 0 comments
Open

Comments

@tylertreat-wf
Copy link
Contributor

RestRules are validated on server start, but if the user has an error in their rest handler code, i.e. they return a different type of resource than their rules specify, go-rest will panic if the field doesn't exist. Consider adding a check to ensure the field exists so a more meaningful error message can be provided.

https://github.com/Workiva/go-rest/blob/master/rest/rule.go#L461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant