spring-swagger2markup-demo icon indicating copy to clipboard operation
spring-swagger2markup-demo copied to clipboard

snippets not included

Open leohsu91 opened this issue 7 years ago • 4 comments

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

leohsu91 avatar May 22 '17 06:05 leohsu91

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

RobWin avatar May 22 '17 08:05 RobWin

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

leohsu91 avatar May 22 '17 09:05 leohsu91

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

leostudio avatar Jun 05 '17 08:06 leostudio

Please set swagger2markup.extensions.springRestDocs.defaultSnippets to true

RobWin avatar Jun 05 '17 17:06 RobWin