ePages-de / restdocs-raml

Adds RAML support for Spring REST Docs
MIT License
26 stars 7 forks source link

Circular Dependency when API served out of `/api` in the URL #25

Closed joemccall86 closed 6 years ago

joemccall86 commented 6 years ago

Our api is exposed at /api/... in our running application. When we run ramldoc it generates an api.raml that references api.raml, creating a circular dependency. I believe this can be mitigated by allowing the outputFileNamePrefix to be configurable in build.gradle.

mduesterhoeft commented 6 years ago

Thanks for reporting the issue - seems like I overlooked this.

I will try to come up with a fix very soon.

mduesterhoeft commented 6 years ago

Please check the new version 0.3.0 there is a new outputFileNamePrefix configuration option to customize the name of the top-level RAML file. Additionally we now check that a group file will not have the same name as the top-level file. So it should also work for you without adding this configuration.