File tree 4 files changed +9
-16
lines changed 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 203
203
"requestHeaders" : {
204
204
"type" : [
205
205
" object"
206
- ],
207
- "noCLI" : true ,
208
- "noEnv" : true
206
+ ]
209
207
},
210
208
"requestQueryParameters" : {
211
209
"type" : [
212
210
" object"
213
- ],
214
- "noCLI" : true ,
215
- "noEnv" : true
211
+ ]
216
212
},
217
213
"socialSharing" : {
218
214
"type" : [
240
236
{
241
237
"$ref" : " https://stac-extensions.github.io/authentication/v1.1.0/schema.json"
242
238
}
243
- ],
244
- "noCLI" : true ,
245
- "noEnv" : true
239
+ ]
246
240
}
247
241
}
248
242
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ env -0 | cut -f1 -d= | tr '\0' '\n' | grep "^SB_" | {
76
76
boolean)
77
77
bool " $value "
78
78
;;
79
- integer | number)
79
+ integer | number | object )
80
80
object " $value "
81
81
;;
82
82
array)
Original file line number Diff line number Diff line change @@ -285,8 +285,6 @@ This is affected by [`allowedDomains`](#alloweddomains).
285
285
286
286
Example: ` {'Authorization': 'Bearer 134567984623223'} ` adds a Bearer token to the HTTP headers.
287
287
288
- Please note that this option can only be provided through a config file and is not available via CLI/ENV.
289
-
290
288
## requestQueryParameters
291
289
292
290
*** experimental***
@@ -296,8 +294,6 @@ This is affected by [`allowedDomains`](#alloweddomains).
296
294
297
295
Example: ` {'f': 'json'} ` adds a ` f ` query parameter to the HTTP URL, e.g. ` https://example.com?f=json ` .
298
296
299
- Please note that this option can only be provided through a config file and is not available via CLI/ENV.
300
-
301
297
## socialSharing
302
298
303
299
Lists the social sharing service for which buttons should be shown in the "Share" panel.
@@ -335,8 +331,6 @@ In addition the following properties are supported:
335
331
336
332
Authentication is generally affected by the [ ` allowedDomains ` ] ( #alloweddomains ) option.
337
333
338
- The ` authConfig ` option can only be provided through a config file and is not available via CLI/ENV.
339
-
340
334
### API Keys
341
335
342
336
API keys can be configured to be sent via HTTP header or query parameter:
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ const argv = yargs(hideBin(process.argv))
15
15
. boolean ( optionsForType ( "boolean" ) )
16
16
. number ( optionsForType ( "number" ) . concat ( optionsForType ( "integer" ) ) )
17
17
. array ( optionsForType ( "array" ) )
18
+ . option (
19
+ Object . fromEntries (
20
+ optionsForType ( "object" ) . map ( ( k ) => [ k , { coerce : JSON . parse } ] )
21
+ )
22
+ )
18
23
. argv ;
19
24
// Clean-up arguments
20
25
delete argv . _ ;
You can’t perform that action at this time.
0 commit comments