Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Syntax error in version translate for property that is an internal reference #351

@bsrikan

Description

@bsrikan

For a property say "hasCustomerID" that is an internal ref in model2, version translator produces a syntax error on deploying the artifact.

Model1:

 "hasProductID":{  
               "datatype":"integer"
            }

Model2:

"hasCustomerID": {
          "$ref": "#/definitions/Customer"
        }

Code in version translator that produces syntax err:

let $hasCustomerID := $source-node/hasCustomerID ! es:init-instance(?, 'Customer')
=>es:with-namespace('http://marklogic.com/customer','cust')(.)

expected:
let $hasCustomerID := $source-node/hasCustomerID ! $extract-reference-Customer(.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions