Skip to content

Commit

Permalink
sorting the tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lcahlander committed Sep 14, 2021
1 parent 4b5b23f commit 5b915a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>org.xqdoc</groupId>
<artifactId>exist-xqdoc</artifactId>
<version>0.5.7</version>
<version>0.5.8</version>

<name>xqDoc Function Documentation</name>
<description>Application and library to generate and display XQuery function documentation for eXist-db</description>
Expand Down
4 changes: 3 additions & 1 deletion src/main/xquery/xqdoc2openapi-lib.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,16 @@ as map(*)?
}
else ()

let $tags-array := (
let $tags-array := for $tag in (
if (fn:contains(fn:base-uri($function), "/db/apps/"))
then
fn:substring-before(fn:substring-after(fn:base-uri($function), "/db/apps/"), "/")
else (),
for $tag in $function//xqdoc:custom[@tag = 'openapi-tag']
return fn:normalize-space($tag/text())
)
order by $tag
return $tag

let $post-put := $function//xqdoc:annotation[fn:starts-with(@name, "rest:POST") or fn:starts-with(@name, "rest:PUT")]
let $request-body :=
Expand Down

0 comments on commit 5b915a5

Please sign in to comment.