Re: codegen of $ref JSON pointer references

2016-10-24 Thread tony tam
Hi Lex, If you could please share some details of your structure, we can look at it. There are a couple known issues with swagger-parser (the underlying parse/resolve utility for codegen) that are being worked on right now. If you have additional test cases, I’d love to get them in. See here:

codegen of $ref JSON pointer references

2016-10-24 Thread Lex Luthra
I recently created a new OpenAPI project using YAML and generated a client using codegen module. As per some of the advice on this and other forums, I subsequently split my spec into several files and used JSON pointer references to link them. However, I noticed that when using codegen to gener

Re: How to make all fields by default required?

2016-10-24 Thread Ron Ratovsky
If possible at all, that would depend on the libraries you use. From: on behalf of Alex Oberon Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Monday, 24 October 2016 at 7:02 To: Swagger Subject: How to make all fields by default required? How to make all fields by defa

Re: Can I create dynamic "Implementation Notes" using Jersey annotations or something else?

2016-10-24 Thread William Saxton
Sorry, I've never used codegen before I got stuck trying to configure it as a plugin. Hence, confusing us both! This looks like exactly what I needed. I just tried: *clientPath.getGet().description("My dynamic description")* And it worked. Thanks for the help! On Monday, October 24, 2016

Re: Can I create dynamic "Implementation Notes" using Jersey annotations or something else?

2016-10-24 Thread tony tam
I’m confused. You’re looking to automate the generation of the swagger definitions on your server, correct? And by using more intelligent logic, such as reading values from a database, etc. If that’s the case, try using that project (swagger-generator) as an example for dynamically mutating t

Re: Can I create dynamic "Implementation Notes" using Jersey annotations or something else?

2016-10-24 Thread William Saxton
Thanks Tony. I've looked for examples on how to integrate the codegen maven plugin and get this working, but it looks like many people are using it for generating client libraries rather than server-side filtering. Do you have an example pom I can look at to just get this part working? On Mon

Re: Can I create dynamic "Implementation Notes" using Jersey annotations or something else?

2016-10-24 Thread tony tam
If you need more advanced functionality, you’re much better off creating a filter to modify your definition. Then you can do anything you want with it. For example see here: https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-generator/src/main/java/io/swagger/generator/D

Can I create dynamic "Implementation Notes" using Jersey annotations or something else?

2016-10-24 Thread William Saxton
If not, then is there a way to do it in "java-land" rather than having to code my own documentation manually via text editor or swagger editor? For the most part, this type of annotation is sufficient for our docs: @ApiOperation( value = "Searches for information, such as asset,

Re: Defining role/permission security

2016-10-24 Thread Diff
Does this apply though if you're using other types of authentication? We're not using oauth2 in our project. On Sunday, October 23, 2016 at 6:55:23 PM UTC-5, tony tam wrote: > > Hi, yes, you would create multiple securityDefinition objects--see here > for details >

How to make all fields by default required?

2016-10-24 Thread Alex Oberon
How to make all fields by default required and only java Optional to be optional? -- 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...@g

Re: Defining role/permission security

2016-10-24 Thread Tamer Shahin
Cool thanks, I'm planning to use JWT, so the api_key approach def will fit properly! My main problem is that scopes are defined only for OAUTH approach. JWT supports the notion of scopes, so it would be great to see this for api_key as well (or a new profile JWT) what do you think? T Il gio

Introducing Swagger to MSF4J support

2016-10-24 Thread 'Sanjeewa Malalgoda' via Swagger
Hi All, Recently i was working on project and it required to generate Java micro service skeleton(for MSF4J Framework[1]) from swagger definition. So i used existing jax-rs implementation and modified it to generate MSF4J code. I have tried this with different swagger definitions include pet sto

Re: Append \n while code generating for java application

2016-10-24 Thread 'Sanjeewa Malalgoda' via Swagger
Hi Tony, Thanks a lot for pointer. In my code those 2 had different versions and managed to fix it by switching to latest 2.2.0-Snapshot code. Thanks, sanjeewa. On Monday, October 24, 2016 at 5:38:55 AM UTC+5:30, tony tam wrote: > > Hi, I’m guessing your maven plugin version and the cli are diff