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

Query validation shows an incorrect location in some cases #920

Open
tasn opened this issue May 11, 2023 · 0 comments
Open

Query validation shows an incorrect location in some cases #920

tasn opened this issue May 11, 2023 · 0 comments
Labels
server Issues regarding the server component

Comments

@tasn
Copy link
Member

tasn commented May 11, 2023

E.g. when you "list messages" with event_types=1, (, is not allowed in event type names), you get this:

Error: Varidation error Some(HttpValidationError { detail: [ValidationError { loc: ["query", "__all__"], msg: "String must match the following pattern: [a-zA-Z0-9\\-_.].", _type: "value_error" }] })

Location should be query, event_types or even better: query, event_types, 0 as it's the first item.

@tasn tasn added the server Issues regarding the server component label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Issues regarding the server component
Projects
None yet
Development

No branches or pull requests

1 participant