Skip to content

Commit 344610b

Browse files
committed
format stac-check better
1 parent 786ce60 commit 344610b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/stac_api_validator/validations.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ def stac_check(
334334
f"[{context}] {method} {url} is not a valid STAC object: {linter.error_msg}"
335335
)
336336
if msgs := linter.best_practices_msg[1:]: # first msg is a header
337-
warnings += (
338-
f"[{context}] {method} {url} has these stac-check recommendations: {msgs}"
339-
)
337+
warnings += f"[{context}] {method} {url} has these stac-check recommendations: {''.join(msgs)}"
340338

341339

342340
def retrieve(
@@ -1399,7 +1397,6 @@ def validate_item_search_filter(
13991397
filter_jsons.append(cql2_json_not_like)
14001398

14011399
if basic_spatial_operators_supported:
1402-
14031400
if cql2_text_supported:
14041401
filter_texts.append(cql2_text_s_intersects)
14051402
filter_texts.append(cql2_text_ex_2(collection))

0 commit comments

Comments
 (0)