Skip to content

Commit

Permalink
Add a non-whitespace pattern to SearchQueriesParam.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Oct 18, 2024
1 parent 37fcbee commit 1edfc67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_serp.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def test_metadata():
{"type": "null"},
],
"description": "Input 1 search query per line (e.g. foo bar).",
"pattern": "\\S+",
"title": "Search Queries",
"widget": "textarea",
},
Expand Down
1 change: 1 addition & 0 deletions zyte_spider_templates/spiders/serp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SearchQueriesParam(BaseModel):
description="Input 1 search query per line (e.g. foo bar).",
json_schema_extra={
"widget": "textarea",
"pattern": r"\S+",
},
)

Expand Down

0 comments on commit 1edfc67

Please sign in to comment.