<div dir="auto">We could probably add /ecmascript:.*/ to the regexp.   You still need to do it for your validator, so the 3 choices still stand.   What is the consensus?<div dir="auto"><br></div><div dir="auto">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 20, 2017 11:42 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/20/2017 2:54 PM, John Carlson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Code does not match a URI.  You can modify your validator to accept a wider range of URI values, or we can get rid of the format, or we can probably all decide on a different format. Choices 1 and 3 require you modify your validator.<br>
</blockquote>
<br>
Spec ruleth.  If the value is legal, then the JSON validator needs to become powerful enough to validate it (or at least accept it without throwing a false-positive error).<br>
<br>
==============================<wbr>======================<br>
        X3D Abstract Specification: 9.2.3 Scripting language protocols<br>
        <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/networking.html#ScriptingLanguageProtocols" rel="noreferrer" target="_blank">http://www.web3d.org/documents<wbr>/specifications/19775-1/V3.3/<wbr>Part01/components/networking.<wbr>html#ScriptingLanguageProtocol<wbr>s</a><br>
<br>
EXAMPLE  The following illustrates the use of mixing custom protocols and standard protocols in a single url field (order of precedence determines priority):<br>
<br>
#X3D V3.0 utf8<br>
Script {<br>
 url [ "ecmascript: ...", # custom in-line ECMAScript code<br>
 "<a href="http://bar.com/foo.js" rel="noreferrer" target="_blank">http://bar.com/foo.js</a>", # ECMAScript file reference<br>
 "<a href="http://bar.com/foo.class" rel="noreferrer" target="_blank">http://bar.com/foo.class</a>" ] # Java platform bytecode file reference<br>
}<br>
<br>
The "..." represents in-line ECMAScript source code.<br>
==============================<wbr>======================<br>
<br>
p.s. we also need a .jar version of url for script code, such as<br>
<br>
        "<a href="http://bar.com/HeebaHabaLibrary.jar#foo.class" rel="noreferrer" target="_blank">http://bar.com/HeebaHabaLibra<wbr>ry.jar#foo.class</a>"<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzma<wbr>n</a><br>
</blockquote></div></div>