Hi All,

May be this is the classic noob question, I apologise in advance but I was 
unable to find an appropriate solution.
So having done this, at least for me, appropriate introduction, I would 
explain the problem.

The Swagger project is wonderful to create in every language easily client 
and server apps, but I don't understand how to maintain or extend an 
existing project in a proper way.

I have written my own Maven pom and using the swagger-codegen-maven-plugin 
and so now I'm able to generate model or api directly with maven.

I see that every time I rebuild my project the API will be completely 
rewritten by swagger-codegen plugin.

I need to implement my application logic, and at moment I didn't see any 
other way than customise the generated API sources. So, to avoid loosing my 
work at every build I could configure the .swagger-codegen-ignore (and I 
did), but I had only postponed the problem.

Because first time I have to update the swagger.json, the only option I 
have is to regenerate the entire API and overwrite my work. Ok, I could use 
git and try to restore the removed part, but is really an ugly solution.

So, the question is:

using swagger-codegen (or Swagger in general) is there a pattern, an how 
to, a documented way that allow me to add a behaviour and/or extend the 
generated APIs without overwrite my code?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to