Re: swagger-jersey-jaxrs genereates duplicate operationIds when using inheritance

2016-09-07 Thread tony tam
There are different issues here and that’s jumbling up the solution. I suggest creating either a simple project or sharing your definition so this can be helped along. > On Sep 7, 2016, at 3:54 AM, alex.rhomb...@temet.ch wrote: > > I tried setting a nickname in the base class, but that same ni

Re: does Swagger UI only accepts a predefined json format?

2016-09-07 Thread tony tam
Looks like you do. I’m not sure exactly what this syntax is, but I can say it’s not Swagger. Take a look at the definition of the specification here: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md

Re: How to make a field in a model required for POST and optional for PUT

2016-09-07 Thread tony tam
Hi, you can certainly have different models for `POST` and `PUT`, however, they will be just that—different models. I suggest you take the most lenient model (say, the one with no required fields) and use the “allOf” construct to merge that model with the required array. Like this: Pet:

Re: subTypes

2016-09-07 Thread Sebastian Stehle
I have the same question. It is very unclear how the current status is, especially about swagger-ui. Am Freitag, 2. September 2016 20:29:23 UTC+2 schrieb Ben Gill: > > Hi, > > I want my Swagger API to show subtypes so I can use Swagger code gen to > generate those subtypes. However, I see this

Auto generated code in Python: How to specify controller name in Yaml file

2016-09-07 Thread Benjamin SOULAS
Hello everyone, Actually, I use the swagger editor to generate my API skeleton, but it generates only one Controller (named "default_controller.py"). I don't find any doc on "How specify a controller" for a route? The idea is to generate several controllers for the API in order to avoid a huge o

ReaderListener not executed

2016-09-07 Thread alex . rhomberg
I have inserted a ReaderListener to see whether I can change the duplicate operationId values generated in my inherited classes. The ReaderListener is in the same package where my scanned @Api classes are. All it currently does is wait for the breakpoint to be hit: public class MyListener imple

Re: swagger-jersey-jaxrs genereates duplicate operationIds when using inheritance

2016-09-07 Thread alex . rhomberg
I tried setting a nickname in the base class, but that same nickname was then used in all subclasses, so it again resulted in duplicate operationIds. Would I have to @Override the methods in the subclasses, just to be able to set different nicknames? *Shouldn't the generated default operationId