[
  {
    "path": ".gitignore",
    "content": ".idea\n*.iml\n.gradle\nbuild\n/bin/\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: java\njdk:\n- openjdk8\nbefore_install:\n- chmod +x gradlew\nscript: ./gradlew runJar\nafter_success:\n- ./gradlew artifactoryPublish -PbintrayUsername=\"${BINTRAY_USER}\" -PbintrayApiKey=\"${BINTRAY_KEY}\"\nenv:\n  global:\n  - secure: PimMQ++iTddts9ik7tZYOqAOxTvkDny0PwsxznGKhfeK+9yRmoMbjPB6XWWEjBEn9pqeunNoUI02QQQyH+0E+elFy/nS1xr8Z3zTNu4akdmEVjxl7Yw5zm32qqxmgJpGGsbJ85ll18+LAkT35KDx0PVoZqLsstnlHpC5h5Aix/MyXi1wuLBcjlrBHOWnPXHFQmCaw8QjhsNPFj7fsIi4L36ksniXEa5qTwUd9HxlmOHrp0TWfFa4Lcxw9OCa1c+jF+bY9+8WR8G9Nj37QDuSFZjGQj+06KHbgAHIiH+4R969FH4CSLzP0yi+aQ1QNB8VwVhGs44lqcwM1rW75h3bezvNrWQesUpCFu07ZjRWNr2OvkbPTAKWPVcd+IAWrXqlcktgucQcroYlGbFDSa+gVpM/WWjbXHWaKvSuwsI/l2RohcgKkD6ZYTJL8HwM07oVVdbVZYi+cYg74lm6NkoaAAx30aO0hflofuQkgE7vEnZrypzCqPcGLVjIdEuupcrAaQ2i4i5Xtr0Euqx5jeLlHMTlKq5D1H8eeE07dd71GCJkz4e6nOgoaqJZHBaWucX3JyA/odndleXgbbu1pM+v6PhNMfPswGp/O6XCRdmLg7t3z6QHgW9k+sDQAIq9xqLNTjj2sv2w8g8UJjazaUi6wGJK6x8lQaGpvDOg7a3Hbog=\n  - secure: gHxkSpqiNUl2aQbP3W8nbMuUG0UVyniA0H390xzuOZAmeGTVB3UbYUCNnVraYMfx7577SqxLVhFnj3Yn1PrGj/RUxaX4EtfhJZCwrgnF4fyTFoh9qCoLdjTsh4CMrqDzxVOAJQMvcWt/REQyi1yhCpRpkbaRzVQ21YqUCa9EEMwwmP8LVJG5jz9PV29SKS8H848AqDgzXJVKqSg++BuWn7iqjQVkts3ptwQcZP/28Zhc3UYjHuXS3BCsyPLMsWzDoz80KyHDdUb+SCEuSy/rKmixsyHPoaXPwHp57wkzWOyGJnzqyLlMVx5utCPXNk3Xlu6J3ytC9LV0RuL2Lz7+5WIBGv9aqN2avkWSYBjBoF/J4WbTxDCLE7X5cPGgTe+ywhGRIzVSzZ9NMr2S8actTa8qIz/2RZOO6M8/gzRklIAa3Ab95hFnEy9zwJKQJnniKbWOU1Mfzdbd9ZEouCFJoCdczy9rmQCUEYaItWVZ6ZPiSWR5W8kQvzDBUWNltYk54KHtCATDZZmbqR0mfaLyv0CHgq4q4hNew+K4f/gbHWFJpTT9Qqo7SCFfsA9MhMx0MHQaRwYd+hcb9eEV7DwyhnzkbiUD2xWRaNrd41x7k2xU8hzQnhfg5AClDY+Td95OjxhDdL95SF5ZoAuDC92Ya95mr9aSXCuqdsk86P/VFpU=\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "README.adoc",
    "content": "= swagger2markup-cli\nCommand line interface (CLI) for Swagger2Markup\n\nimage:https://travis-ci.org/Swagger2Markup/swagger2markup-cli.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/Swagger2Markup/swagger2markup-cli\"] image:https://api.bintray.com/packages/swagger2markup/Maven/swagger2markup-cli/images/download.svg[link=\"https://bintray.com/swagger2markup/Maven/swagger2markup-cli/_latestVersion\"]\n\n== Overview\n\nThis is a CLI for https://github.com/Swagger2Markup/swagger2markup[Swagger2Markup].\nIt converts a Swagger JSON or YAML file into several AsciiDoc or GitHub Flavored Markdown documents which can be combined with hand-written documentation. The Swagger source file can be located locally or remotely via HTTP. Swagger2Markup supports the Swagger 1.2 and 2.0 specification.\n\n== Quick usage\nYou can clone and build the jar, then use this CLI to generate asciidocs.\n    \n    gradle assemble\n    java -jar ./build/libs/swagger2markup-cli-X.X.X.jar convert -i the_swagger_file.json -d /the/path/to/output\n\nMac users can use https://brew.sh[Homebrew] to install the Swagger2Markup CLI:\n\n    brew install swagger2markup-cli\n    swagger2markup convert -i the_swagger_file.json -d /the/path/to/output\n\nThat's all! Then you can checkout http://asciidoctor.org/, find your way to to play with asciidocs.\n\n== Reference documentation\n\nThe documentation can be found at https://github.com/Swagger2Markup/swagger2markup#reference-documentation[Reference documentation]\n\n== License\n\nCopyright 2015 Robert Winkler\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n"
  },
  {
    "path": "RELEASENOTES.adoc",
    "content": "= Release Notes\n\n== Version 1.0.0\n* Updated Swagger2Markup dependency to 1.0.0\n\n=== Version 1.0.1\n* Updated Swagger2Markup dependency from 1.0.0 to 1.0.1\n\n== Version 1.1.0\n* Updated Swagger2Markup dependency from 1.0.1 to 1.1.0\n\n=== Version 1.1.1\n* Updated Swagger2Markup dependency from 1.1.0 to 1.1.1\n\n== Version 1.2.0\n* Updated Swagger2Markup dependency from 1.1.0 to 1.2.0\n\n== Version 1.3.0\n* Updated Swagger2Markup dependency from 1.2.0 to 1.3.0\n\n=== Version 1.3.1\n* Updated Swagger2Markup dependency from 1.3.0 to 1.3.1\n\n=== Version 1.3.2\n* Updated Swagger2Markup dependency from 1.3.1 to 1.3.2\n\n=== Version 1.3.3\n* Updated Swagger2Markup dependency from 1.3.2 to 1.3.3\n"
  },
  {
    "path": "build.gradle",
    "content": "buildscript {\n    repositories {\n        jcenter()\n        maven {\n            url \"https://plugins.gradle.org/m2/\"\n        }\n    }\n    dependencies {\n        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'\n        classpath \"org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0\"\n        //classpath \"com.gradle.publish:plugin-publish-plugin:0.9.0\"\n    }\n}\n\ngroup 'io.github.swagger2markup'\nversion '2.0.0-SNAPSHOT'\n\napply plugin: 'java'\napply plugin: 'maven-publish'\napply plugin: 'com.jfrog.bintray'\napply plugin: \"com.jfrog.artifactory\"\napply from: 'gradle/publishing.gradle'\n\ntasks.withType(JavaCompile) {\n    sourceCompatibility = \"1.8\"\n    targetCompatibility = \"1.8\"\n    options.deprecation = true\n    options.encoding = 'UTF-8'\n    options.compilerArgs << \"-Xlint:unchecked\"\n}\n\nrepositories {\n    jcenter()\n    mavenCentral()\n    maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }\n}\n\ndependencies {\n    compile (\"io.github.swagger2markup:swagger2markup:2.0.0-SNAPSHOT\")\n    compile 'io.airlift:airline:0.7'\n    compile 'ch.qos.logback:logback-classic:1.1.2'\n    testCompile 'org.assertj:assertj-core:3.4.0'\n    testCompile 'junit:junit:4.11'\n    testCompile \"org.mockito:mockito-core:1.9.5\"\n}\n\ntask sourcesJar(type: Jar, dependsOn: classes) {\n    classifier = 'sources'\n    from sourceSets.main.allSource\n}\n\ntask javadocJar(type: Jar, dependsOn: javadoc) {\n    classifier = 'javadoc'\n    from javadoc.destinationDir\n}\n\nartifacts {\n    archives sourcesJar\n    archives javadocJar\n}\n\ntask wrapper(type: Wrapper) {\n    gradleVersion = '5.6.3'\n}\n\ntask runJar(dependsOn:jar) << {\n    String swaggerInput = file(\"src/test/resources/swagger_petstore.yaml\").getAbsolutePath()\n    javaexec { main=\"-jar\"; args = [jar.archivePath, 'convert', '-i', \"${swaggerInput}\", '-d', \"${buildDir}\"]}\n}"
  },
  {
    "path": "gradle/publishing.gradle",
    "content": "import java.text.SimpleDateFormat\n\nDate buildTimeAndDate = new Date()\next {\n    buildDate = new SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate)\n    buildTime = new SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate)\n}\n\ndef projectArtifactId = 'swagger2markup-cli'\n\njar {\n    manifest {\n        attributes(\n                'Built-By': 'Robert Winkler',\n                'Created-By': System.properties['java.version'] + \" (\" + System.properties['java.vendor'] + \" \" + System.properties['java.vm.version'] + \")\",\n                'Build-Date': project.buildDate,\n                'Build-Time': project.buildTime,\n                'Specification-Title': projectArtifactId,\n                'Specification-Version': project.version,\n                'Implementation-Title': projectArtifactId,\n                'Implementation-Version': project.version,\n                'Main-Class': 'io.github.swagger2markup.cli.Application'\n        )\n    }\n    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }\n}\n\nif (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = ''\nif (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = ''\nif (!project.hasProperty('gpgPassphrase')) ext.gpgPassphrase = ''\nif (!project.hasProperty('ossUser')) ext.ossUser = ''\nif (!project.hasProperty('ossPassword')) ext.ossPassword = ''\n\nbintray {\n    user = project.bintrayUsername\n    key = project.bintrayApiKey\n    dryRun = false //Whether to run this as dry-run, without deploying\n    publish = true //If version should be auto published after an upload\n    publications = ['mavenJava']\n    pkg {\n        repo = 'Maven'\n        name = 'swagger2markup-cli'\n        userOrg = 'swagger2markup'\n        websiteUrl = 'https://github.com/Swagger2Markup/swagger2markup-cli'\n        issueTrackerUrl = 'https://github.com/Swagger2Markup/swagger2markup-cli/issues'\n        vcsUrl = 'https://github.com/Swagger2Markup/swagger2markup-cli.git'\n        desc = 'A Command line Interface (CLI) for Swagger2Markup.'\n        licenses = ['Apache-2.0']\n        version {\n            vcsTag = project.version\n            gpg {\n                sign = true //Determines whether to GPG sign the files. The default is false\n                passphrase = project.gpgPassphrase //Optional. The passphrase for GPG signing'\n            }\n            mavenCentralSync {\n                sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.\n                user = ossUser //OSS user token\n                password = ossPassword //OSS user password\n            }\n        }\n    }\n}\n\npublishing {\n    publications {\n        mavenJava(MavenPublication) {\n            from components.java\n            pom.withXml {\n                def devs = ['RobWin': 'Robert Winkler']\n                def root = asNode()\n\n                root.dependencies.'*'.findAll() {\n                    it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->\n                        dep.name == it.artifactId.text()\n                    }\n                }.each() {\n                    it.scope*.value = 'compile'\n                }\n\n                root.appendNode('name', 'swagger2markup-cli')\n                root.appendNode('packaging', 'jar')\n                root.appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-cli')\n                root.appendNode('description', 'A Command line Interface (CLI) for Swagger2Markup.')\n\n                def license = root.appendNode('licenses').appendNode('license')\n                license.appendNode('name', 'Apache-2.0')\n                license.appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-cli/blob/master/LICENSE.txt')\n                license.appendNode('distribution', 'repo')\n\n                root.appendNode('scm').appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-cli.git')\n\n                def developers = root.appendNode('developers')\n                devs.each {\n                    def d = developers.appendNode('developer')\n                    d.appendNode('id', it.key)\n                    d.appendNode('name', it.value)\n                }\n            }\n            artifact sourcesJar\n            artifact javadocJar\n        }\n    }\n}\n\nartifactory {\n    contextUrl = 'https://oss.jfrog.org'\n    resolve {\n        repository {\n            repoKey = 'libs-release'\n        }\n    }\n    publish {\n        repository {\n            repoKey = 'oss-snapshot-local' //The Artifactory repository key to publish to\n            //when using oss.jfrog.org the credentials are from Bintray. For local build we expect them to be found in\n            //~/.gradle/gradle.properties, otherwise to be set in the build server\n            username = project.hasProperty('bintrayUsername') ? project.bintrayUsername : System.getenv('BINTRAY_USER')\n            password = project.hasProperty('bintrayApiKey') ? project.bintrayApiKey : System.getenv('BINTRAY_KEY')\n        }\n        defaults {\n            publications('mavenJava')\n        }\n    }\n    if (System.properties['https.proxyHost']) {\n        clientConfig.proxy.host = System.properties['https.proxyHost']\n        clientConfig.proxy.port = System.properties['https.proxyPort'].toInteger()\n    }\n\n}\n\ntasks.artifactoryPublish {\n    dependsOn 'check'\n}"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Mon Dec 11 09:33:47 CET 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.3.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "systemProp.file.encoding=UTF-8\nsystemProp.sun.jnu.encoding=UTF-8"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windows variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\ngoto execute\r\n\r\n:4NT_args\r\n@rem Get arguments from the 4NT Shell from JP Software\r\nset CMD_LINE_ARGS=%$\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "settings.gradle",
    "content": "rootProject.name = 'swagger2markup-cli'\n\n"
  },
  {
    "path": "src/main/java/io/github/swagger2markup/cli/Application.java",
    "content": "/*\n * Copyright 2016 Robert Winkler\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *        http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage io.github.swagger2markup.cli;\n\nimport io.airlift.airline.*;\nimport io.github.swagger2markup.Swagger2MarkupConfig;\nimport io.github.swagger2markup.Swagger2MarkupConverter;\nimport io.github.swagger2markup.builder.Swagger2MarkupConfigBuilder;\nimport io.github.swagger2markup.utils.URIUtils;\nimport org.apache.commons.configuration2.Configuration;\nimport org.apache.commons.configuration2.builder.fluent.Configurations;\nimport org.apache.commons.configuration2.ex.ConfigurationException;\nimport org.apache.commons.lang3.StringUtils;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport javax.inject.Inject;\nimport java.nio.file.Paths;\n\n@Command(name = \"convert\", description = \"Converts a Swagger JSON or YAML file into Markup documents.\")\npublic class Application implements Runnable{\n\n    private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);\n\n    @Inject\n    public HelpOption helpOption;\n\n    @Option(name = {\"-i\", \"--swaggerInput\"}, required = true, description = \"Swagger input. Can either be a URL or a file path.\")\n    public String swaggerInput;\n\n    @Option(name = {\"-d\", \"--outputDir\"}, description = \"Output directory. Converts the Swagger specification into multiple files.\")\n    public String outputDir;\n\n    @Option(name = {\"-f\", \"--outputFile\"}, description = \"Output file. Converts the Swagger specification into one file.\")\n    public String outputFile;\n\n    @Option(name = {\"-c\", \"--config\"}, description = \"Config file.\")\n    public String configFile;\n\n    public static void main(String[] args) {\n        Cli.CliBuilder<Runnable> builder = Cli.<Runnable>builder(\"swagger2markup\")\n                    .withDescription(\"Converts a Swagger JSON or YAML file into Markup documents\")\n                    .withDefaultCommand(Help.class)\n                    .withCommands(Help.class, Application.class);\n\n        Cli<Runnable> gitParser = builder.build();\n\n        gitParser.parse(args).run();\n    }\n\n    public void run() {\n\n        Swagger2MarkupConfig swagger2MarkupConfig = null;\n        if(StringUtils.isNotBlank(configFile)) {\n            Configurations configs = new Configurations();\n            Configuration config;\n            try {\n                config = configs.properties(configFile);\n            } catch (ConfigurationException e) {\n                throw new IllegalArgumentException(\"Failed to read configFile\", e);\n            }\n            swagger2MarkupConfig = new Swagger2MarkupConfigBuilder(config).build();\n        }\n        Swagger2MarkupConverter.Builder converterBuilder = Swagger2MarkupConverter.from(URIUtils.create(swaggerInput));\n        if(swagger2MarkupConfig != null){\n            converterBuilder.withConfig(swagger2MarkupConfig);\n        }\n        Swagger2MarkupConverter converter = converterBuilder.build();\n\n        if(StringUtils.isNotBlank(outputFile)){\n            converter.toFile(Paths.get(outputFile).toAbsolutePath());\n        }else if (StringUtils.isNotBlank(outputDir)){\n            converter.toFolder(Paths.get(outputDir).toAbsolutePath());\n        }else {\n            throw new IllegalArgumentException(\"Either outputFile or outputDir option must be used\");\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/test/resources/swagger_petstore.yaml",
    "content": "swagger: \"2.0\"\ninfo:\n  description: |\n    This is a sample server Petstore server.\n\n    [Learn about Swagger](http://swagger.io) or join the IRC channel `#swagger` on irc.freenode.net.\n\n    For this sample, you can use the api key `special-key` to test the authorization filters\n  version: \"1.0.0\"\n  title: Swagger Petstore\n  termsOfService: http://helloreverb.com/terms/\n  contact:\n    name: apiteam@swagger.io\n  license:\n    name: Apache 2.0\n    url: http://www.apache.org/licenses/LICENSE-2.0.html\nhost: petstore.swagger.io\nbasePath: /v2\nschemes:\n  - http\ntags:\n  - name: pet\n    description: Pet resource\n  - name: store\n    description: Store resource\n  - name: user\n    description: User resource\npaths:\n  /pets:\n    post:\n      tags:\n        - pet\n      summary: Add a new pet to the store\n      description: \"\"\n      operationId: addPet\n      consumes:\n        - application/json\n        - application/xml\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - $ref: \"#/parameters/PetBody\"\n      responses:\n        \"405\":\n          description: Invalid input\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n    put:\n      tags:\n        - pet\n      summary: Update an existing pet\n      description: \"\"\n      operationId: updatePet\n      consumes:\n        - application/json\n        - application/xml\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - $ref: \"#/parameters/PetBody\"\n      responses:\n        \"405\":\n          description: Validation exception\n        \"404\":\n          description: Pet not found\n        \"400\":\n          $ref: \"#/responses/InvalidId\"\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n  /pets/findByStatus:\n    get:\n      tags:\n        - pet\n      summary: Finds Pets by status\n      description: Multiple status values can be provided with comma seperated strings\n      operationId: findPetsByStatus\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: query\n          name: status\n          description: Status values that need to be considered for filter\n          required: false\n          type: array\n          items:\n            type: string\n          collectionFormat: multi\n      responses:\n        \"200\":\n          description: successful operation\n          schema:\n            type: array\n            items:\n              $ref: \"#/definitions/Pet\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          description: Invalid status value\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n  /pets/findByTags:\n    get:\n      tags:\n        - pet\n      summary: Finds Pets by tags\n      description: Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.\n      operationId: findPetsByTags\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: query\n          name: tags\n          description: Tags to filter by\n          required: false\n          type: array\n          items:\n            type: string\n          collectionFormat: multi\n      responses:\n        \"200\":\n          description: successful operation\n          schema:\n            type: array\n            items:\n              $ref: \"#/definitions/Pet\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          description: Invalid tag value\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n  /pets/{petId}:\n    get:\n      tags:\n        - pet\n      summary: Find pet by ID\n      description: Returns a pet when ID < 10.  ID > 10 or nonintegers will simulate API error conditions\n      operationId: getPetById\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: petId\n          description: ID of pet that needs to be fetched\n          required: true\n          type: integer\n          format: int64\n      responses:\n        \"404\":\n          description: Pet not found\n        \"200\":\n          description: successful operation\n          schema:\n            $ref: \"#/definitions/Pet\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          $ref: \"#/responses/InvalidId\"\n      security:\n        - api_key: []\n        - petstore_auth:\n          - write_pets\n          - read_pets\n    post:\n      tags:\n        - pet\n      summary: Updates a pet in the store with form data\n      description: \"\"\n      operationId: updatePetWithForm\n      consumes:\n        - application/x-www-form-urlencoded\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: petId\n          description: ID of pet that needs to be updated\n          required: true\n          type: string\n        - in: formData\n          name: name\n          description: Updated name of the pet\n          required: true\n          type: string\n        - in: formData\n          name: status\n          description: Updated status of the pet\n          required: true\n          type: string\n      responses:\n        \"405\":\n          description: Invalid input\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n    delete:\n      tags:\n        - pet\n      summary: Deletes a pet\n      description: \"\"\n      operationId: deletePet\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: header\n          name: api_key\n          description: \"\"\n          required: true\n          type: string\n        - in: path\n          name: petId\n          description: Pet id to delete\n          required: true\n          type: integer\n          format: int64\n      responses:\n        \"400\":\n          description: Invalid pet value\n      security:\n        - petstore_auth:\n          - write_pets\n          - read_pets\n  /stores/order:\n    post:\n      tags:\n        - store\n      summary: Place an order for a pet\n      description: \"\"\n      operationId: placeOrder\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: body\n          name: body\n          description: order placed for purchasing the pet\n          required: false\n          schema:\n            $ref: \"#/definitions/Order\"\n      responses:\n        \"200\":\n          description: successful operation\n          schema:\n            $ref: \"#/definitions/Order\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          description: Invalid Order\n  /stores/order/{orderId}:\n    get:\n      tags:\n        - store\n      summary: Find purchase order by ID\n      description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions\n      operationId: getOrderById\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: orderId\n          description: ID of pet that needs to be fetched\n          required: true\n          type: string\n      responses:\n        \"404\":\n          description: Order not found\n        \"200\":\n          description: successful operation\n          schema:\n            $ref: \"#/definitions/Order\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          $ref: \"#/responses/InvalidId\"\n    delete:\n      tags:\n        - store\n      summary: Delete purchase order by ID\n      description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors\n      operationId: deleteOrder\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: orderId\n          description: ID of the order that needs to be deleted\n          required: true\n          type: string\n      responses:\n        \"404\":\n          description: Order not found\n        \"400\":\n          $ref: \"#/responses/InvalidId\"\n  /users:\n    post:\n      tags:\n        - user\n      summary: Create user\n      description: This can only be done by the logged in user.\n      operationId: createUser\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: body\n          name: body\n          description: Created user object\n          required: false\n          schema:\n            $ref: \"#/definitions/User\"\n      responses:\n        default:\n          description: successful operation\n  /users/createWithArray:\n    post:\n      tags:\n        - user\n      summary: Creates list of users with given input array\n      description: \"\"\n      operationId: createUsersWithArrayInput\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: body\n          name: body\n          description: List of user object\n          required: false\n          schema:\n            type: array\n            items:\n              $ref: \"#/definitions/User\"\n      responses:\n        default:\n          description: successful operation\n  /users/createWithList:\n    post:\n      tags:\n        - user\n      summary: Creates list of users with given input array\n      description: \"\"\n      operationId: createUsersWithListInput\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: body\n          name: body\n          description: List of user object\n          required: false\n          schema:\n            type: array\n            items:\n              $ref: \"#/definitions/User\"\n      responses:\n        default:\n          description: successful operation\n  /users/login:\n    get:\n      tags:\n        - user\n      summary: Logs user into the system\n      description: \"\"\n      operationId: loginUser\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: query\n          name: username\n          description: The user name for login\n          required: false\n          type: string\n        - in: query\n          name: password\n          description: The password for login in clear text\n          required: false\n          type: string\n      responses:\n        \"200\":\n          description: successful operation\n          schema:\n            type: string\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          description: Invalid username/password supplied\n  /users/logout:\n    get:\n      tags:\n        - user\n      summary: Logs out current logged in user session\n      description: \"\"\n      operationId: logoutUser\n      produces:\n        - application/json\n        - application/xml\n      responses:\n        default:\n          description: successful operation\n  /users/{username}:\n    get:\n      tags:\n        - user\n      summary: Get user by user name\n      description: \"\"\n      operationId: getUserByName\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: username\n          description: The name that needs to be fetched. Use user1 for testing.\n          required: true\n          type: string\n      responses:\n        \"404\":\n          description: User not found\n        \"200\":\n          description: successful operation\n          schema:\n            $ref: \"#/definitions/User\"\n          headers:\n            X-Rate-Limit-Limit:\n              description: The number of allowed requests in the current period\n              type: integer\n            X-Rate-Limit-Remaining:\n              description: The number of remaining requests in the current period\n              type: integer\n            X-Rate-Limit-Reset:\n              description: The number of seconds left in the current period\n              type: integer\n        \"400\":\n          description: Invalid username supplied\n    put:\n      tags:\n        - user\n      summary: Updated user\n      description: This can only be done by the logged in user.\n      operationId: updateUser\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: username\n          description: name that need to be deleted\n          required: true\n          type: string\n        - in: body\n          name: body\n          description: Updated user object\n          required: false\n          schema:\n            $ref: \"#/definitions/User\"\n      responses:\n        \"404\":\n          description: User not found\n        \"400\":\n          description: Invalid user supplied\n    delete:\n      tags:\n        - user\n      summary: Delete user\n      description: This can only be done by the logged in user.\n      operationId: deleteUser\n      produces:\n        - application/json\n        - application/xml\n      parameters:\n        - in: path\n          name: username\n          description: The name that needs to be deleted\n          required: true\n          type: string\n      responses:\n        \"404\":\n          description: User not found\n        \"400\":\n          description: Invalid username supplied\nparameters:\n  PetBody:\n    in: body\n    name: body\n    description: Pet object that needs to be added to the store\n    required: false\n    schema:\n      $ref: \"#/definitions/Pet\"\nresponses:\n  InvalidId:\n    description: Invalid ID supplied\nsecurityDefinitions:\n  api_key:\n    type: apiKey\n    name: api_key\n    in: header\n  petstore_auth:\n    type: oauth2\n    authorizationUrl: http://petstore.swagger.io/api/oauth/dialog\n    flow: implicit\n    scopes:\n      write_pets: modify pets in your account\n      read_pets: read your pets\ndefinitions:\n  User:\n    type: object\n    properties:\n      id:\n        type: integer\n        format: int64\n      username:\n        type: string\n      firstName:\n        type: string\n      lastName:\n        type: string\n      email:\n        type: string\n      password:\n        type: string\n      phone:\n        type: string\n      userStatus:\n        type: integer\n        format: int32\n        description: User Status\n  Category:\n    type: object\n    properties:\n      id:\n        type: integer\n        format: int64\n      name:\n        type: string\n        description: The name of the category\n        minLength: 0\n        maxLength: 255\n        pattern: \"[A-Za-zäöüÄÖÜß]{0,255}\"\n        default: DefaultCategory\n        example: FoobarCategory\n  Pet:\n    type: object\n    required:\n      - name\n      - photoUrls\n    properties:\n      id:\n        type: integer\n        format: int64\n      category:\n        $ref: \"#/definitions/Category\"\n      name:\n        type: string\n        example: doggie\n      photoUrls:\n        type: array\n        items:\n          type: string\n      tags:\n        type: array\n        items:\n          $ref: \"#/definitions/Tag\"\n      status:\n        type: string\n        description: pet status in the store,\n        enum:\n          - Dead\n          - Alive\n  Tag:\n    type: object\n    properties:\n      id:\n        type: integer\n        format: int64\n      name:\n        type: string\n  Order:\n    type: object\n    properties:\n      id:\n        type: integer\n        format: int64\n      petId:\n        type: integer\n        format: int64\n      quantity:\n        type: integer\n        format: int32\n        minimum: 0\n        maximum: 10000.0\n        default: 0\n        example: 10\n      shipDate:\n        type: string\n        format: date-time\n      status:\n        type: string\n        description: Order Status\n        enum:\n          - Ordered\n          - Cancelled\n      complete:\n        type: boolean\n"
  }
]