I am trying to document a REST API reference using the OpenAPI format (v2). I want it to be "design-first", meaning that my swagger spec will be the contract of the API implementation.
I have tried many modules and solutions e.g. swagger-node (too opiniated about folder structure and implementation), swaggerize-express which forces me to use express, etc. I also tried an generator-openapi-repo but it seems outdated and no more maintained.
Any solution out there to document a REST API reference, design-first and without coupling the documentation with the actual implementation?