Closed stain closed 5 years ago
script_access_type feels a bit contrived, as it is defining the type of script key, making it hard to validate/use alone.
The script key however does not explain at all how an inline script can be used.
script
Other parts of BCO use sub-objects like
"source": { "address": "http://example.com/file.txt" }
It might make sense to do a similar approach here, where one can provide either address for URI (potentially relative #23 for files) or value for inline scripts (but preferably not both!) - thus one can remove script_access_type
address
value
script_access_type
Relates to #50
See #50.
script_access_type feels a bit contrived, as it is defining the type of script key, making it hard to validate/use alone.
The
script
key however does not explain at all how an inline script can be used.Other parts of BCO use sub-objects like
It might make sense to do a similar approach here, where one can provide either
address
for URI (potentially relative #23 for files) orvalue
for inline scripts (but preferably not both!) - thus one can removescript_access_type