marklogic-community / RunDMC

MarkLogic application for running a developer site
http://developer.marklogic.com/code/rundmc
Other
17 stars 18 forks source link

change type mapping for item() in function signatures #799

Open kcoleman-marklogic opened 6 years ago

kcoleman-marklogic commented 6 years ago

Currently, the code that generates SJS apidoc from the XQuery function defns maps item() and item()? to String and String?. This is wrong in most or all cases. See fn.string for an example. It says it takes String? as input, but that's not so.

We should probably change this to use a non-existent abstract type like Item instead.

The use of String is right out of the original SJS functional spec. I have a query out to the devs about why they thought this was a good idea. Will update this bug once I confirm whether or not my suggested fix is a bad idea.