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

Report URL parameter errors in the HTML response #17

Open
pictographer opened this issue Jun 14, 2022 · 0 comments
Open

Report URL parameter errors in the HTML response #17

pictographer opened this issue Jun 14, 2022 · 0 comments

Comments

@pictographer
Copy link
Contributor

For each named pattern in the URL, the api.toml has a corresponding type from struct UrlSegment. If the segment of the actual URL cannot be parsed as this type, an error is logged, but the HTML response is generic. The HTML response should be specific, either reporting the parsing errors followed by the route documentation or integrated into the documentation where the corresponding types are mentioned.

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

2 participants