Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 07 10:03
    micobarac opened #440
  • Apr 29 09:10
    qurenneng commented #420
  • Apr 29 08:53
    qurenneng commented #420
  • Apr 28 20:59
    ShubhamRwt review_requested #439
  • Apr 26 07:31
    Felk commented #423
  • Apr 26 07:23
    Felk commented #423
  • Apr 26 07:22
    Felk opened #439
  • Apr 26 06:34
    RobWin commented #423
  • Apr 26 06:34

    RobWin on master

    fix(gradlebuildconfig): add pom… (compare)

  • Apr 26 06:34
    RobWin closed #438
  • Apr 24 06:20
    qingmo opened #438
  • Apr 21 17:42
    Kabhal commented #423
  • Mar 29 13:02
    micobarac commented #437
  • Mar 29 12:55
    micobarac commented #437
  • Mar 29 11:59
    RobWin commented #437
  • Mar 28 06:18
    micobarac commented #437
  • Mar 28 06:14
    micobarac commented #437
  • Mar 28 06:14
    micobarac commented #437
  • Mar 28 06:13
    micobarac commented #437
  • Mar 28 05:59
    micobarac opened #437
David Porter
@dcp65
@jwr456 You can filter a method from the generated Swagger JSON by adding hidden=trueto the @ApiOperation annotation. In other words, you filter before you run swagger2markup.
Julian Dreissig
@thirtified
FYI, I have submitted a formula for swagger2markup-cli to be available through homebrew.
jschutijzer
@jschutijzer
Hi, I'm using swagger2markup-maven-plugin
I see it producing curl-request.adoc files
but I don't see them in the result html
Am I missing a setting or something?
jschutijzer
@jschutijzer
@here anyone?
Joel Roberts
@jwr456
Hey @dcp65 - thanks for your reply.
Robert Winkler
@RobWin
Hi, sry I'm really busy at the moment
walid
@walidos195
hi
Julian West
@fuzzyjulz
@RobWin Would it be possible to get a release created? Really keen to get the bugfix for issue 336 - Headers not displaying correctly
David Porter
@dcp65
Can anyone show me how to run the convertSwagger2markup task more than once using different swaggerInput files in the same build.gradle?
I’m trying something like this:
task thisApi {
    convertSwagger2markup {
        swaggerInput 'https://myapi/this/swagger.json'
        outputDir file("src/docs/this")
        config = [
                'swagger2markup.pathsGroupedBy'                     : 'TAGS',
                'swagger2markup.markupLanguage'                     : 'MARKDOWN',
        ]
    }
}

task thatApi {
    convertSwagger2markup {
        swaggerInput 'https://myapi/that/swagger.json'
        outputDir file("src/docs/that")
        config = [
                'swagger2markup.pathsGroupedBy'                     : 'TAGS',
                'swagger2markup.markupLanguage'                     : 'MARKDOWN',
        ]
    }
}
But neither of the convertSwagger2markup tasks actually runs.
stevep0000
@stevep0000
Hi, how can you override the different language translations in the label_xx.properties files ? For example, I would like the output to show the word "Services" instead of "Tags".
Johan Hammar
@johanhammar
Hi! I'm trying to generate examples for a http request with query parameters. Unfortunately the output that I get is one section with the uri and wh
and one section with the request parameters
Which looks more like body content. Is it possible to generate request examples like this https://host?param1=1&param2=2
Ghost
@ghost~5cc594f1d73408ce4fbee018

is it possible to inject asciidoc settings like

:chapter-label:
:toc:
:icons: font
:lang: en
// Settings:
:commonResourcesDir: ../resources
:imagesdir: {commonResourcesDir}/images
ifdef::backend-pdf[:notitle:]
ifdef::backend-pdf[]
:pdf-stylesdir: {commonResourcesDir}/theme
:pdf-fontsdir: {commonResourcesDir}/fonts
:pdf-style: custom
:pdf-page-size: A4
endif::[]

into generated document ?

Sebastien Vermeille
@sebastienvermeille
hi there!
I have some issues regarding swagger and maven. I successfully were able to generate an openapi.json and yaml file from my source code and now I would like to generate asciidoc files from that. Unfortunately the plugin says: Failed to read the Swagger source. Does it support openapi format ?
thank you in advance
ok seems not I've seen an issue about that on the git repo thank you
David Porter
@dcp65

Someone just alerted me to Robert’s update to the swagger2markup README from June:

unfortunately I can’t maintain Swagger2Markup alone anymore.

A shame. swagger2markup was a really useful tool.
Shiva Prasad G
@shivaprasad573
I am trying to send My Authorization header but it is not taking the value can anyone help me to send it(Am using Swagger 3.2)
  •   - name: Authorization
       in: header
       description: API Authorization
       required: true
       schema:
         type: string
         format: ''
         default: 'U2Fsd'
Ghost
@ghost~5cc594f1d73408ce4fbee018
@shivaprasad573 looking at the source code, doesn't look like it's possible to send authorization to swagger. Also, Swagger2Markup currently doesn't support OpenApi v3
David Porter
@dcp65

Hi, how can you override the different language translations in the label_xx.properties files ? For example, I would like the output to show the word "Services" instead of "Tags".

Anyone have a solution to this question from @stevep0000?

Ghost
@ghost~5cc594f1d73408ce4fbee018
@dcp65 have you tried adding another label_xx.properties on to classpath, to see if it will override the default one, I can’t remember if it needs to be first or last on the classpath
rbelfils
@rbelfils
Hello, i use springdoc-openapi-maven-plugin to generate my openin.json in version 3.0.1, but how can i build documentation in PDF with this specification ? Swagger2markup doesn't work :/
Ghost
@ghost~5cc594f1d73408ce4fbee018
Please try new OpenApi2Markup snapshot version, though it’s still under development
rbelfils
@rbelfils
ty, where i can found this git project ?
Ghost
@ghost~5cc594f1d73408ce4fbee018
@rbelfils it’s the same project. However, now it builds Swagger2markup and OpenApi2markup
rbelfils
@rbelfils
ok ty @austek
Lee Turner
@leeturner
Hi. We are using swagger2markup to generate our api docs during our build. We have found that on occasion things like parameters are generate in a slightly different order so S2M changes the order in the generated docs. I just wanted to know what kind of ordering is NATURAL and also is the only way to use the CUSTOM ordering programmatically in code a opposed to say from the command line ?
Vladimir Bukreev
@vlad2135
Hi all. Is there a similar library, but for arbitrary JSON schema files? Any advice is appreciated.
I just want to document a JSON configuration file, so it's schema does not describe API. And I need a static result, not a website.
Paolo Patierno
@ppatierno
@RobWin hi! First of all thanks for accepting and merging my PR!
Do you have any plan/roadmap for the new release? Because I will open PRs to update the maven plugin and the cli as well using the latest release.
Glen
@glenhein
I'm new to swagger2markup. I'm executing it from maven. I'm looking for a way to inject strings into my yaml file. For example, I'd like set the configuration property FOO and use ${FOO} in my yaml. Is there a built-in way to do that? Do I need to create a custom extension?
wakingrufus
@wakingrufus
Hello @RobWin I see that there has been some recent activity on the gradle plugin. My bugfix from 2 years ago still has not been released. Any chance that can be published soon?
Janith Kalhara
@janithkalhara
Hello @RobWin is the 2.0.0 released already ?
Nikolaos Hadjitheophanous
@NikolaosHadjitheophanous
Hello guys. On the swagger2markup-demo how can I modify the Host and BasePath text on Chapter 1.4 URI scheme?
r.k
@Coder-rks
Hi, I have a query regarding Swagger UI. I need the response of the requested URL in different languages like the postman does. It provides the code in different languages like ruby, python, PHP, nodejs etc. Is it possible to achieve this using swagger UI?
arseny-tl
@arseny-tl
hi! after jcenter and spring-plugins repos closed i can't use this plugin. can someone point me where i can download plugin with full deps?
Andy Elliott
@andye2004
Hey guys, new to swagger2markup and had a question around the maven and gradle plugins. Is it possible to use them for generating OpenAPI v3 to asciidoc? I know I'm almost certainly missing something but I can't see anything in the docs, nor any examples doing this.
ikannak
@ikannak
I was wondering whether it is possible to generate adoc files with both XML and JSON examples with Swagger2Markup
Paolo Patierno
@ppatierno
@RobWin any change to get in touch with you and talking about Swagger2Markup project? The Strimzi community uses it for doc generation but we would like to have a new release soon with an issue I fixed long time ago. We think it's a great tool but we would like to maintain it alive but avoiding to fork it. Maybe we can talk about getting committer/maintainer permissions to do releases, review PRs, merging and so on? Wdyt?
Neil Kenny
@neilkenny

We are currently upgrading our app to Java 17 from 11 and are getting an error when executing the swagger2markup plugin:

"Failed to execute goal 'convertSwagger2markup': Error creating extended parser class: Could not determine whether class 'org.pegdown.Parser$$parboiled' has already been loaded: Unable to make protected final
java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) accessible: module java.base does not "opens java.lang" to unnamed module"

I have seen this github issue is related and still open: Swagger2Markup/swagger2markup#423

In the meantime I assume I could get around this by adding an --add-opens argument but I cannot see how to do this with the plugin. Is there any way to get around this error?

Metallist
@Metallist-dev
Hi there, I want to try to contribute with Swagger2Markup/swagger2markup-gradle-plugin#14, but I somehow couldn't manage to get the gradle project running. It says that io.github.swagger2markup:swagger2markup:2.0.0-SNAPSHOT couldn't be resolved. Are there any solutions for that? I assume it was accessible via jCenter, which was shut down in Feb 2021.