Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tapiro modelsPaths requires to specify both models and routes path #170

Open
calippo opened this issue Mar 3, 2020 · 0 comments
Open

Tapiro modelsPaths requires to specify both models and routes path #170

calippo opened this issue Mar 3, 2020 · 0 comments
Assignees

Comments

@calippo
Copy link
Member

calippo commented Mar 3, 2020

Metarpheus removes unused models from the generated code. If no routes are specified no models are generated.

Tapiro retrieves models and routes separately so that models can be imported from different sbt projects.

val models = Metarpheus.run(modelsPaths, config).models
val routes: List[TapiroRoute] = Metarpheus.run(routesPaths, config).routes.map { route =>
    TapiroRoute(route, routeError(route, models))
}
@calippo calippo self-assigned this Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants