:lipstick: Fix warning.

:lipstick: Fix warning.

jsoniq version "1.0";

import module namespace components = "http://28.io/modules/xbrl/components";

import schema namespace mongos = "http://www.28msec.com/modules/mongodb/types";

import module namespace xbrl-export = "http://28.io/modules/xbrl/export";

declare option rest:response "first-item";

declare variable $defaultResponse as object := {
  "content-type": "application/xml;charset=utf-8"
};
declare variable $query := {};
declare variable $components := components:components();

declare  %rest:case-insensitive variable $part as string? external := "archive";
declare  %rest:case-insensitive variable $name as string? external := "ch-or";

let $taxonomyName as string := $name || "-" || substring(string(current-date()), 1, 10)
return
  switch ($part)
  case "schema" return ($defaultResponse, xbrl-export:schema($components, $taxonomyName))
  case "labels" return ($defaultResponse, xbrl-export:labels($components, $taxonomyName))
  case "presentation" return ($defaultResponse, xbrl-export:presentation($components, $taxonomyName))
  case "calculation" return ($defaultResponse, xbrl-export:calculation($components, $taxonomyName))
  case "definition" return ($defaultResponse, xbrl-export:definition($components, $taxonomyName))
  case "archive" return xbrl-export:archive("SWISS-OR-TAXONOMY-2015", $taxonomyName)
  default return error(xs:QName("err:Error"), "unknown part " || $part)

jsoniq version "1.0";

import module namespace concepts = "http://28.io/modules/xbrl/concepts";
import module namespace components = "http://28.io/modules/xbrl/components";
import module namespace networks = "http://28.io/modules/xbrl/networks";
import module namespace labels = "http://28.io/modules/xbrl/labels";

import module namespace archive = "http://zorba.io/modules/archive";
import module namespace mongo = "http://www.28msec.com/modules/mongodb";
import module namespace credentials = "http://www.28msec.com/modules/credentials";
import schema namespace mongos = "http://www.28msec.com/modules/mongodb/types";

import module namespace xbrl-export = "http://28.io/modules/xbrl/export";

declare namespace xs = "http://www.w3.org/2001/XMLSchema";
declare option rest:response "first-item";

declare variable $defaultResponse as object := {
  "content-type": "application/xml;charset=utf-8"
};
declare variable $query := {};
declare variable $components := components:components();

declare  %rest:case-insensitive variable $part as string? external := "archive";
declare  %rest:case-insensitive variable $name as string? external := "ch-or";

let $taxonomyName as string := $name || "-" || substring(string(current-date()), 1, 10)
return
  switch ($part)
  case "schema" return ($defaultResponse, xbrl-export:schema($components, $taxonomyName))
  case "labels" return ($defaultResponse, xbrl-export:labels($components, $taxonomyName))
  case "presentation" return ($defaultResponse, xbrl-export:presentation($components, $taxonomyName))
  case "calculation" return ($defaultResponse, xbrl-export:calculation($components, $taxonomyName))
  case "definition" return ($defaultResponse, xbrl-export:definition($components, $taxonomyName))
  case "archive" return xbrl-export:archive("SWISS-OR-TAXONOMY-2015", $taxonomyName)
  default return error(xs:QName("err:Error"), "unknown part " || $part)