Skip to content

Commit

Permalink
Fix problems with example values for body
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Oct 17, 2023
1 parent aba6a1d commit 5c515dc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vleserver/entries.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,13 @@ declare
"sid": "The internal ID. May be empty string.",
"lemma": "A lemma. May be empty string.",
"entry": "The entry as XML fragment."
} or
entries: [{
}')
%test:arg("userData", '{
"entries": [{
"sid": "The internal ID. May be empty string.",
"lemma": "A lemma. May be empty string.",
"entry": "The entry as XML fragment."
}]')
}]}')
function _:createEntry($dict_name as xs:string, $userData, $content-type as xs:string, $wanted-response as xs:string, $auth_header as xs:string) {
let $start := prof:current-ns(),
$userName := _:getUserNameFromAuthorization($auth_header),
Expand Down Expand Up @@ -534,7 +535,7 @@ declare
%rest:produces('application/problem+json')
%rest:produces('application/problem+xml')
%test:consumes('application/json')
%test:arg("userData", '{entries: [{
%test:arg("userData", '{"entries": [{
"id": "The xml:id of the entry to change",
"sid": "The internal ID. May be empty string.",
"lemma": "A lemma. May be empty string.",
Expand Down

0 comments on commit 5c515dc

Please sign in to comment.