openapi-contrib / openapi3-generator

Use your API OpenAPI 3 definition to generate code, documentation, and literally anything you need.
Apache License 2.0
90 stars 27 forks source link

Feature Request: Create one file per path #40

Open dpkirchner opened 4 years ago

dpkirchner commented 4 years ago

Currently, the generator creates one file per top-level path component -- that is, if you have paths a/b/c and a/d/e[1] and a path template named routes/$$path$$/route.js.hbs it only creates one file routes/a/route.js. I'd like it to create a/b/c.js or optionally a_b_c.js (assuming I change the path template to routes/$$path$$.js), so I can create path-specific scripts for testing purposes.