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

snippets not included #16

Open
leohsu91 opened this issue May 22, 2017 · 4 comments
Open

snippets not included #16

leohsu91 opened this issue May 22, 2017 · 4 comments

Comments

@leohsu91
Copy link

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
Copy link
Member

RobWin commented May 22, 2017

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

@leohsu91
Copy link
Author

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
Copy link

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

@RobWin
Copy link
Member

RobWin commented Jun 5, 2017

Please set swagger2markup.extensions.springRestDocs.defaultSnippets to true

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

3 participants