Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 6eae682e authored by Mathias Goebel's avatar Mathias Goebel
Browse files

fix cardinality for string()

parent 7b32105c
No related branches found
No related tags found
No related merge requests found
project.name=https://lab.sub.uni-goettingen.de/openapi4restxq-develop
project.version=1.5.0
project.version=1.5.1
project.title=OpenAPI for RESTXQ
project.abbrev=openapi-develop
project.processorversion=4.6.1
......
......@@ -407,6 +407,6 @@ as xs:string?{
: @param $name The name of the argument to prepare an example for :)
declare %private function openapi:example($function as element(function), $name as xs:string)
as map(*)* {
string($function/annotation[@name = "test:arg"][value[1] eq $name]/value[2])
string(($function/annotation[@name = "test:arg"][value[1] eq $name])[1]/value[2])
! map{ "example": .}
};
......@@ -8,6 +8,15 @@
<type>application</type>
<target>openapi</target>
<changelog>
<change version="1.5.1">
<ul xmlns="http://www.w3.org/1999/xhtml">
<li class="bugs">Bugfixes
<ul style="margin-left: 15px;">
<li>bugfix for string() call with multiple test annotations</li>
</ul>
</li>
</ul>
</change>
<change version="1.5.0">
<ul xmlns="http://www.w3.org/1999/xhtml">
<li class="feat">Features
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment