Does not allow model creation with missing binary reference
I have a model similar to this:
When I create a model with params that do not contain an imageReference and imageLocation, it throws this error:
[1.0-ml] URI Variables must not be empty (EMPTY-URI-VARIABLE) Stack Trace
In /_framework/base/base-model.xqy on line 102 In model:build-uri(attribute{fn:QName("", "fileURI")}{"$(imageLocation)"}, <model name="product" class="code" extends="base" persistence="directory" key="uuid" keyLabel="" xmlns="http://www.xquerrail-framework.com/domain"><element name="uuid" type="identity" identity="true" label="Glob..., map:map(<map:map xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:map="http://marklogic.com/xdmp/map"><map:entry key="imageLocation"><map:value xsi:type="xs:string"/>.../map:map))
I can workaround this by passing in an imageLocation value of " " (at least 1 character in the string), but it seems like the framework should be able to support creating a model when the binary does not exist (and therefore does not have an associated fileURI defined).