@@ -33,6 +33,7 @@ class StacValidate:
33
33
core (bool): Whether to only validate the core STAC object (without extensions).
34
34
links (bool): Whether to additionally validate links (only works in default mode).
35
35
assets (bool): Whether to additionally validate assets (only works in default mode).
36
+ assets_open_urls (bool): Whether to open assets URLs when validating assets.
36
37
extensions (bool): Whether to only validate STAC object extensions.
37
38
custom (str): The local filepath or remote URL of a custom JSON schema to validate the STAC object.
38
39
verbose (bool): Whether to enable verbose output in recursive mode.
@@ -54,6 +55,7 @@ def __init__(
54
55
core : bool = False ,
55
56
links : bool = False ,
56
57
assets : bool = False ,
58
+ assets_open_urls : bool = True ,
57
59
extensions : bool = False ,
58
60
custom : str = "" ,
59
61
verbose : bool = False ,
@@ -67,6 +69,7 @@ def __init__(
67
69
self .schema = custom
68
70
self .links = links
69
71
self .assets = assets
72
+ self .assets_open_urls = assets_open_urls
70
73
self .recursive = recursive
71
74
self .max_depth = max_depth
72
75
self .extensions = extensions
@@ -122,7 +125,7 @@ def assets_validator(self) -> Dict:
122
125
assets = self .stac_content .get ("assets" )
123
126
if assets :
124
127
for asset in assets .values ():
125
- link_request (asset , initial_message )
128
+ link_request (asset , initial_message , self . assets_open_urls )
126
129
return initial_message
127
130
128
131
def links_validator (self ) -> Dict :
0 commit comments