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

Admin API GetSchema behaves differently from GetPolicy #1679

Open
charithe opened this issue Jul 7, 2023 · 0 comments
Open

Admin API GetSchema behaves differently from GetPolicy #1679

charithe opened this issue Jul 7, 2023 · 0 comments
Labels

Comments

@charithe
Copy link
Contributor

charithe commented Jul 7, 2023

Requesting a schema that does not exist using GetSchema returns a RPC error with INTERNAL error code. Doing the same with GetPolicy just returns an empty list. I think the behaviour of GetPolicy is better here. At the very least, the RPC error code from GetSchema should not be INTERNAL because it's not an internal error.

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

No branches or pull requests

1 participant