{
"description": "It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching. checking function parameter 1 in call array:subarray($data?links, 2): XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: array:subarray($array as array(*), $start as xs:integer) array(*). Expected cardinality: exactly one, got 0. [at line 111 of /db/apps/tei-publisher/modules/annotation-config.xqm]",
"details": null
}
After checking the error at line at line 111 of /db/apps/tei-publisher/modules/annotation-config.xqm I tried again adding the links property (that cannot be an empty array) and I was able to add the place
So at the moment only for type place to make this API working correctly the links field is required. If it is not a bug maybe it should be indicated in the API documentation
I tried to add a register entry using the api
/api/register/{type}/{id}
with dataAnd I obtained this error
After checking the error at line
at line 111 of /db/apps/tei-publisher/modules/annotation-config.xqm
I tried again adding thelinks
property (that cannot be an empty array) and I was able to add the placeSo at the moment only for type place to make this API working correctly the links field is required. If it is not a bug maybe it should be indicated in the API documentation