简体   繁体   中英

No descriptionFile in swagger-maven-plugin v3

I would like to migrate from swagger V2 to OpenAPI v3.

For swagger V2 I used the com.github.kongchen:swagger-maven-plugin plugin to generate my swagger file based on my code. I migrated to io.swagger.core.v3:swagger-maven-plugin successfully. The only part missing is

<descriptionFile>src/doc/Swagger-Description.md</descriptionFile>

which I used in the old plugin to enrich the generated swagger file with some basic information.

I could not find any way to do so with io.swagger.core.v3:swagger-maven-plugin . Is it possible?

As a workaround (or even maybe as intended?) I added the MD text to the configurationFilePath file

openAPI:
  info:
  description: 'my MD description'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM