Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger2markup.extensions.dynamicDefinitions.contentPath not working in swagger2markup 2.0.0 snapshot #417

Open
anonymouspandabear opened this issue Mar 5, 2021 · 0 comments

Comments

@anonymouspandabear
Copy link

anonymouspandabear commented Mar 5, 2021

Thanks for raising a Swagger2Markup issue. Please provide a brief description of your problem along with the Swagger2Markup version you are using. If possible, please also consider putting together a complete Swagger specification that reproduces the issue. It's better if the Swagger specification is small and isolate the issue.

Swagger2Markup version: 2.0.0-SNAPSHOT

Problem description:

I just upgraded my swagger2markup to 2.0.0-SNAPSHOT
However, the Dynamic file import extension is not showing when trying to view the output.
The documents/artifacts are fine in pdf and html format respectively but the dynamic contents are missing.

task convertswagger(type: io.github.swagger2markup.tasks.Swagger2MarkupTask,
    group: 'test',
    description: 'test') {
    swaggerInputFile file("${buildDir}/swagger/test.yaml")
    outputDir asciiDocOutputDir
    config = ['swagger2markup.markupLanguage' : 'ASCIIDOC',
              'swagger2markup.pathsGroupedBy' : 'TAGS',
              'swagger2markup.tagOrderBy': 'AS_IS',
              'swagger2markup.extensions.dynamicDefinitions.contentPath' : file('src/docs/asciidoc/extensions/definitions').absolutePath,
              'swagger2markup.extensions.dynamicOverview.contentPath' : file('src/docs/asciidoc/extensions/overview').absolutePath,
              'swagger2markup.extensions.dynamicPaths.contentPath' : file('src/docs/asciidoc/extensions/paths').absolutePath,
              'swagger2markup.extensions.dynamicSecurity.contentPath' : file('src/docs/asciidoc/extensions/security/').absolutePath]
}

I'm using this template https://github.com/Swagger2Markup/swagger2markup-gradle-project-template/blob/master/build.gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant