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

QueryValidator in das-serverless-function does not accept a list of queries, therefore not allowing the use of a conjunction query (AND clause). #156

Closed
Pedrobc89 opened this issue Oct 16, 2024 · 1 comment · Fixed by #157
Assignees

Comments

@Pedrobc89
Copy link
Collaborator

No description provided.

@Pedrobc89
Copy link
Collaborator Author

Not entirely sure, but I believe something on the lines of:

    def validate_query(query, *args, **kwargs) -> bool:
        if isinstance(query, list):
            return all([QueryValidator.validate_query(sub_query) for sub_query in query])

should be okay

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

Successfully merging a pull request may close this issue.

2 participants