File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ def _namedAnyWithDefault(name):
181
181
parser .add_argument (
182
182
"--base-uri" ,
183
183
help = """
184
- use this option to indicate that the schema contains some references
185
- to some local or remote files. With this option, the validator will
186
- try to resolve those references as paths relative to the given schema.
184
+ a base URI to assign to the provided schema, even if it does not
185
+ declare one (via e.g. $id). This option can be used if you wish to
186
+ resolve relative references to a particular URI (or local path)
187
187
""" ,
188
188
)
189
189
parser .add_argument (
@@ -261,9 +261,9 @@ def load(_):
261
261
instances = ["<stdin>" ]
262
262
263
263
resolver = RefResolver (
264
- base_uri = arguments ["base_uri" ],
265
- referrer = schema ,
266
- ) if arguments ["base_uri" ] is not None else None
264
+ base_uri = arguments ["base_uri" ],
265
+ referrer = schema ,
266
+ ) if arguments ["base_uri" ] is not None else None
267
267
268
268
validator = arguments ["validator" ](schema , resolver = resolver )
269
269
exit_code = 0
You can’t perform that action at this time.
0 commit comments