RunDMC icon indicating copy to clipboard operation
RunDMC copied to clipboard

change type mapping for item() in function signatures

Open kcoleman-marklogic opened this issue 6 years ago • 0 comments

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.

kcoleman-marklogic avatar Jul 30 '18 14:07 kcoleman-marklogic