Swagger2Markup / spring-swagger2markup-demo

A demo project template using Swagger2Markup, Spring Boot, Springfox and spring-restdocs
398 stars 259 forks source link

snippets not included #16

Open leohsu91 opened 7 years ago

leohsu91 commented 7 years ago

Hi~ I pull this project,and execute "mvn test". It successfully generated html and pdf files. But the snippets not included. How to solve it? Thank you very much.

image

image

image

RobWin commented 7 years ago

Thx, I have to check it. Maybe something has been changed in Springfox or Spring RestDocs.

leohsu91 commented 7 years ago

Hi, I solved this problem. This is a configuration error. swagger.snippetOutput.dir configured in POM does not match configured in Test Case. Thx for reply. image image

leostudio commented 7 years ago

@leohsu91 but I set outputDir to target/asciidoc/snippets and it didn't work. image

RobWin commented 7 years ago

Please set swagger2markup.extensions.springRestDocs.defaultSnippets to true