Skip to content

Commit

Permalink
change type in query
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocapozzoli committed Mar 6, 2024
1 parent 60b0842 commit 485f755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion das-query-engine/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_incoming_links(
@remove_none_args
def query(
self,
query: Dict[str, Any],
query: List[Dict[str, Any]] | Dict[str, Any],
parameters: Dict[str, Any] = {"no_iterator": True},
) -> List[Dict[str, Any]]:
return self.distributed_atom_space.query(query, parameters)
Expand Down
2 changes: 1 addition & 1 deletion das-query-engine/validators/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class QueryValidator(PayloadValidator):
strict = True

query = datatypes.Function(
lambda value, *args, **kwargs: isinstance(value, dict),
lambda value, *args, **kwargs: isinstance(value, dict) or all(isinstance(item, dict) for item in value),
required=True,
)

Expand Down

0 comments on commit 485f755

Please sign in to comment.