buildo / metarpheus-io-ts

Generate domain models and client interpreting metarpheus output
MIT License
7 stars 1 forks source link

The default apiPrelude hardcodes the models path #123

Open veej opened 3 years ago

veej commented 3 years ago

In the default apiPrelude we're hardcoding the models path as ./model-ts https://github.com/buildo/metarpheus-io-ts/blob/8d7af9ba307d87e785cc9cd542e16b2a8080978b/src/index.ts#L463 In case we want to generate the model file in a different path (e.g. ./model), we have to overwrite the whole prelude.

Should we pass the modelPath to getRoutes and use it to generate the default apiPrelude?