Good afternoon, guys.
I am documenting the APIs of a Spring Boot project using Swagger2.
There are two ways to document: using a text file (JSON or YML) or using annotations. The problem of using a text file is the difficulty in maintaining it, because the file will get bigger, already using annotations ends up polluting the source code.
Does anyone know if there is a way to create a second project with just the documentation? This way it would be possible to separate the documentation from the source code.