pmlopes / vertx-starter

POC for vert.x starter project
https://vertx-starter.jetdrone.xyz
42 stars 15 forks source link

Generate starter project from OpenApi 3 spec doesn't work #59

Closed devrck closed 5 years ago

devrck commented 5 years ago

I'm trying to generate a new starter project using the web interface but it gives me the error: Exception during code generationCannot find service name for operation getTransactionsList I'm using the json spec from the examples.

slinkydeveloper commented 5 years ago

Are you trying to generate it using "OpenAPI Server with Event Bus services"? If yes, you should follow this guide: https://github.com/pmlopes/vertx-starter/blob/master/dist/webdocs/OpenAPI_Server_With_Services.md

devrck commented 5 years ago

Ok I will try that but then the examples repository must also be updated right?

slinkydeveloper commented 5 years ago

Are you talking about vertx-examples? I removed the service gen extension from it because it's related only to this project and not to vertx web api service itself.

If you want, look at this blog post: https://slinkydeveloper.com/Debts-Manager-Tutorial-Vert-x-Web-API-Contract-Service/ and at the code related: https://github.com/slinkydeveloper/debts-manager

devrck commented 5 years ago

Yes I was looking at https://github.com/vert-x3/vertx-examples/blob/master/web-api-service-example/src/main/resources/openapi.json as an example how to structure my OpenAPI Definition to generate a new skeleton