Hello all,
I have a code similar to [1] and used to call it like: curl -X POST "https://myservice.local?compress=false". It worked.
Yesterday I moved to official Basex 12.3 version and started getting the following error:
Value of 'compress' must be of type xs:boolean, supplied: "false". (hint: ....)
Is this a recent implementation change that enforces this type-check? I've not been able to identify the changes in the code base.
Apparently, I can fix this by changing 'false' to false() in the annotation but do you have any idea whether this will be back compatible to older basex versions?
Thanks!
Marco.
[1]
declare
%rest:path("store")
%rest:POST
%rest:query-param("compress", "{$compress}", 'false')
%rest:produces("application/xml")
function _:store($compress as xs:boolean) {
()
};