@@ -45,19 +45,19 @@ declare variable $contacts:HTTP-SERVER-FAIL as xs:integer := 500; (: server side
45
45
(: map client side exception to http code :)
46
46
declare variable $contacts:CLIENT-EXCEPTION-MAP := map
47
47
{
48
- 'ResourceNotFound' := $contacts:HTTP-NOT-FOUND,
49
- 'ExternalResourceNotFound' := $contacts:HTTP-NOT-FOUND,
50
- 'InvalidJson' := $contacts:HTTP-CLIENT-FAIL,
51
- 'InvalidModel' := $contacts:HTTP-CLIENT-FAIL,
52
- 'MissingProperty' := $contacts:HTTP-CLIENT-FAIL,
53
- '*' := $contacts:HTTP-CLIENT-FAIL
48
+ 'ResourceNotFound' : $contacts:HTTP-NOT-FOUND,
49
+ 'ExternalResourceNotFound' : $contacts:HTTP-NOT-FOUND,
50
+ 'InvalidJson' : $contacts:HTTP-CLIENT-FAIL,
51
+ 'InvalidModel' : $contacts:HTTP-CLIENT-FAIL,
52
+ 'MissingProperty' : $contacts:HTTP-CLIENT-FAIL,
53
+ '*' : $contacts:HTTP-CLIENT-FAIL
54
54
};
55
55
56
56
(: map server side exception to http code :)
57
57
declare variable $contacts:SERVER-EXCEPTION-MAP := map
58
58
{
59
- 'DatabaseFail' := $contacts:HTTP-SERVER-FAIL,
60
- '*' := $contacts:HTTP-SERVER-FAIL
59
+ 'DatabaseFail' : $contacts:HTTP-SERVER-FAIL,
60
+ '*' : $contacts:HTTP-SERVER-FAIL
61
61
};
62
62
63
63
@@ -132,8 +132,8 @@ declare %private function contacts:skip-take-range($skip as xs:integer, $take as
132
132
{
133
133
map
134
134
{
135
- 'from' := $skip + 1 ,
136
- 'to' := $skip + $take
135
+ 'from' : $skip + 1 ,
136
+ 'to' : $skip + $take
137
137
}
138
138
};
139
139
0 commit comments