We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92670cb commit 2435f4dCopy full SHA for 2435f4d
planet/clients/data.py
@@ -25,6 +25,7 @@
25
from ..constants import PLANET_BASE_URL
26
from ..http import Session
27
from ..models import Paged, StreamingBody
28
+from ..specs import validate_item_type
29
30
BASE_URL = f'{PLANET_BASE_URL}/data/v1/'
31
SEARCHES_PATH = '/searches'
@@ -146,7 +147,7 @@ async def search(self,
146
147
148
search_filter = search_filter or empty_filter()
149
- # TODO: validate item_types
150
+ item_types = [validate_item_type(item) for item in item_types]
151
request_json = {'filter': search_filter, 'item_types': item_types}
152
if name:
153
request_json['name'] = name
0 commit comments