Re: Swagger Linter with custom rules?

2017-06-21 Thread tony tam
SwaggerHub has a configurable linter. > On Jun 21, 2017, at 6:45 AM, Jayson Tompkins > wrote: > > Does anyone know of any swagger lint tools which would allow customization of > what was enforced? I've seen plenty of general swagger validators, but have > had no

Re: Swagger does not like included JSON Schema object because of "$schema" and "id" properties

2017-06-14 Thread tony tam
Please check out the specification to see what subset of JSON schema is supported: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md The spec does not support the JSON schema draft 4 100%. > On

Re: Noob struggling to define a route...

2017-06-14 Thread tony tam
You should change this: /x: /y: to this: /x/y: Note the path segment (/a, /x/y, etc) must be a single unique string. > On Jun 14, 2017, at 11:25 AM, 'Toe Dipper' via Swagger > wrote: > > I'm evaluating swagger and I'm having trouble defining a

Re: Why neither host nor basePath support path templating?

2017-06-13 Thread tony tam
Please look at the next spec version: https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md The “servers” section will handle this. > On Jun 13, 2017, at 9:53 PM, Indunil Rathnayake

Re: display match any fields in swagger documentation

2017-06-08 Thread tony tam
Hi, looks to me like you’re trying to use a splat parameter which isn’t supported by the specification. If you’re actually trying to pass a single value to the API, consider this instead: > value = “v1/{something}" > On Jun 8, 2017, at 5:37 PM, Maneesh Bhunwal

Re: Intermittent missing property from Swagger spec definition

2017-06-02 Thread tony tam
On Wed, May 31, 2017 at 6:19 PM, tony tam <feh...@gmail.com > <mailto:feh...@gmail.com>> wrote: > Setting the debug level will show you pretty much everything that happens > during the scanning process. I’d start there, and feel free to post your > findings back here fo

Re: Intermittent missing property from Swagger spec definition

2017-05-31 Thread tony tam
on as well. I'm not sure that I see any other models > with the same name, but is there a way for me to find what models are > actually scanned by swagger, just to confirm? > > On Wednesday, May 31, 2017 at 4:13:54 PM UTC-7, tony tam wrote: > Usually this happens when you have mult

Re: Intermittent missing property from Swagger spec definition

2017-05-31 Thread tony tam
Usually this happens when you have multiple models with the same name, but different definitions. The “randomness” has to do with which one is loaded first. > On May 31, 2017, at 3:46 PM, Ron Ratovsky wrote: > > If you’re using Spring as your REST framework, then you

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-28 Thread tony tam
I don’t think this PR is from you, but it looks like it’s on the same topic: https://github.com/swagger-api/swagger-core/pull/2214 Can you please test that fix locally and if that doesn’t fix it, file an issue in GitHub? > On May 27,

Re: Definition for java.time.Instant as String??

2017-05-27 Thread Tony Tam
It depends on the version of the annotations that you're using. I believe there is a 'dataType' property in the annotation that lets you specify a FQ class. Try using java.util.Date > On May 26, 2017, at 10:53 PM, Dan Tran wrote: > > Hi > > By default swagger-maven-plugin

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-25 Thread tony tam
Can you please share the definition that you’re using? Looks to me like you have something like this: type: array without an inner items type: type: array items: type: string > On May 25, 2017, at 7:32 PM, Dan Tran wrote: > > > Hi > > I am using

Re: Java swagger-parser Parameter object is missing something?

2017-05-16 Thread tony tam
You can grab the work-in-progress here: https://github.com/swagger-api/swagger-parser/tree/feature/3.0.0-rc0 Feedback is essential! So feed. back. > On May 16, 2017, at 3:50 PM, Francesco Guardiani

Re: Generating Swagger doc from C++ annotations

2017-05-10 Thread tony tam
Hi, unfortunately I don’t know of any C++ server integrations for autogenerating swagger documents. > On May 10, 2017, at 10:21 AM, Topher Eliot wrote: > > Please excuse me if this is an obvious question. > We have existing server C++ applications that have RESTful

Re: Make swagger work with Value.Immutable / JsonSerializeAs

2017-04-26 Thread tony tam
Pizza and beer!?? OK you know how to get things done. > On Apr 25, 2017, at 9:56 AM, Matthew Shaylor > wrote: > > Hi, > > I've submitting a merge request to get Swagger to work with Java immutables > (https://immutables.github.io/). Basically swagger needs to

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread tony tam
OK Great, so the request seems fine. Is your result array empty? > On Apr 24, 2017, at 9:51 AM, Richard Moore wrote: > > I shortened the results. Seems data is coming back but why is the following > not displaying the results? > > List list =

Re: Petstore test with java generated code not getting same response at ui site

2017-04-24 Thread tony tam
Please set: pets.getApiClient().setDebug(true); And post back what you see in your console. > On Apr 24, 2017, at 9:13 AM, Richard Moore wrote: > > If I go to http://petstore.swagger.io/ and list pets by "available" status I > get results back. But using the

Re: Validation with swagger annotations in java

2017-04-21 Thread tony tam
Hi, you can see a similar question being answered here: https://groups.google.com/forum/#!searchin/swagger-swaggersocket/validate$20payload%7Csort:relevance/swagger-swaggersocket/_aQpeA9j52A/TJE0inDJBQAJ There is a project from the Atlassian folks here:

Re: link on editor not exactly working as expected...

2017-04-21 Thread Tony Tam
sult...nada. Your product was good before...not so much now. moving on > >> On Thursday, April 20, 2017 at 5:03:54 PM UTC-4, tony tam wrote: >> Hi, try to reload. The download for the v2.x editor is quite large and it’s >> likely that it failed to pull down all the assets. Beca

Re: Swagger editor interface has changed...and not for the better

2017-04-20 Thread tony tam
We released the 3.0.x version of the editor, which has much better support for editing. While the “download” buttons are currently not there, they will be shortly. > On Apr 20, 2017, at 1:51 PM, John Fowler wrote: > > I've been using the YAML editor for the past two

Re: link on editor not exactly working as expected...

2017-04-20 Thread tony tam
Hi, try to reload. The download for the v2.x editor is quite large and it’s likely that it failed to pull down all the assets. Because of the new hostname (editor2 vs. editor), the browser is forcing a fresh download for your first visit. > On Apr 20, 2017, at 2:02 PM, John Fowler

Re: Swagger for non-REST APIs

2017-04-17 Thread tony tam
Hi Dave, you sort of can, but it’s going a bit against the grain. The ecosystem is more intended for rest-like APIs, although being “strictly” or even “proper” restful is certainly not a requirement. > On Apr 17, 2017, at 5:00 AM, Dave Merrill wrote: > > Hi folks, I'm

Re: Duplicated body fields with @BeanParam and JSON body

2017-04-06 Thread tony tam
r-jaxrs and swagger-jersey2-jaxrs. > > On Thursday, April 6, 2017 at 10:20:38 AM UTC-3, tony tam wrote: > Try putting the annotation on the getter vs. the private field. > >> On Apr 6, 2017, at 9:19 AM, Théo A. Monteiro <theoalve...@ <>gmail.com >> <ht

Re: Duplicated body fields with @BeanParam and JSON body

2017-04-06 Thread tony tam
rsing as another body? > > On Thursday, April 6, 2017 at 10:11:32 AM UTC-3, tony tam wrote: > You need to set your @BeanParam properties to be either @HeaderParam, > @PathParam or @QueryParam. Without one of these modifiers, it will be > treated as a body parameter. In the definition there can be

Re: Duplicated body fields with @BeanParam and JSON body

2017-04-06 Thread tony tam
You need to set your @BeanParam properties to be either @HeaderParam, @PathParam or @QueryParam. Without one of these modifiers, it will be treated as a body parameter. In the definition there can be only one body param > On Apr 6, 2017, at 9:06 AM, Théo A. Monteiro

Re: custom datatype in request body for POST method

2017-03-23 Thread tony tam
} > > This is sample code we used. Here there are two primitive type params and One > complex type param Fee. > The issues we are facing are > > 1) if we submit the request from swagger UI we are getting the values as > null. for request.getParameter("re

Re: Dependencies for Java generated code

2017-03-23 Thread tony tam
uff - I can't even figure out how to download a > Jackson release on Git Hub - gah! I just want the JARs ! > > Regards, > > Ian > > From: Tony Tam <feh...@gmail.com> > To: swagger-swaggersocket@googlegroups.com > Sent: Thursday, 23 March 2017, 16:15 > Subject

Re: Dependencies for Java generated code

2017-03-23 Thread Tony Tam
Look in the Pom file. You're wise to run mvn dependency:tree to get the full list, even if you don't "use" maven. > On Mar 23, 2017, at 9:06 AM, 'Ian Fallon' via Swagger > wrote: > > Hi, > > Could someone point me in the direction of all the

Re: doubts on swagger

2017-03-23 Thread tony tam
You can look at APIs.guru, or even in https://swaggerhub.com for definitions. Many developer sites are now using swagger and have swagger-ui embedded in them. That means they’re serving a swagger definition, like this: https://www.expedia.com/static/mobile/swaggerui/

Re: custom datatype in request body for POST method

2017-03-22 Thread tony tam
You’ll need to share some more details. Post some code for best feedback. > On Mar 22, 2017, at 7:46 AM, subbu mani wrote: > > In Swagger 2 , we are facing below issue : > > We are having a POST method, which uses query string while submitting the > request. Since it

Re: Swagger parameter example value can't be defined

2017-03-09 Thread tony tam
You may need to set the `defaultValue` attribute. The “example” and “defaultValue” are confusing in the swagger-core implementation in 2.0, it will be changed in the next major version > On Mar 9, 2017, at 5:53 AM, Sergio Stateri wrote: > > Hi, > > I'm using Swagger 2 and

Re: Is swagger API compatible java 1.6 version?

2017-03-06 Thread tony tam
his code with Swagger for API documentation? > > On 04-Mar-2017 05:45, "tony tam" <feh...@gmail.com <mailto:feh...@gmail.com>> > wrote: > For code first integrations? We've move to 1.7 as minimum support. > > On Wednesday, March 1, 2017 at 9:37:53 PM UTC-

Re: Swagger document for returning a swagger document

2017-03-03 Thread tony tam
I suggest that you describe your swagger objects as “type: object”. It most likely doesn’t make sense to validate the swagger documents that you’re including in the document that is describing your inclusion format. Wow, that’s an earful. Hollar if that doesn’t make sense to you. > On Mar

Re: Swagger is not generated from main resource to subresource with hidden-true

2017-03-01 Thread tony tam
<radu.fab...@gmail.com> wrote: > > I do not believe it. It is set to hidden to avoid double generation one from > main resource and another from sub resource. > What other solution do you have? > > Thank you, > Radu > > > On Thursday, February 23, 2017 at 4:28:38 PM U

Re: codegen-2.2.2-SNAPSHOT regression with enum?

2017-02-28 Thread tony tam
Hi Aki, can you please try with the latest master? We’re about to do a release and I’d like to sort this out first. > On Feb 20, 2017, at 7:08 AM, Aki Yoshida wrote: > > Hi, > I am getting invalid code generated for the enum type when using > codegen-2.2.2-SNAPSHOT for

Re: Swagger is not generated from main resource to subresource with hidden-true

2017-02-23 Thread tony tam
I believe that if you set it to hidden, it should… be hidden > On Feb 23, 2017, at 3:25 AM, Radu Fabian wrote: > > Hello, > > I have main resource ConfigurationResource and the subresource > EnvironmentsResource. > I am using swagger-io api version 1.5.9 with artifact

Re: inflector + codegen + spring

2017-02-16 Thread tony tam
I believe you can implement your own ControllerFactory to do this. See here: https://github.com/swagger-api/swagger-inflector/blob/master/src/main/java/io/swagger/inflector/config/ControllerFactory.java

Re: Adding an image into the definition description

2017-02-11 Thread tony tam
I believe you can use markdown syntax for images. > On Feb 11, 2017, at 7:54 AM, Sander Smith wrote: > > I've just started using Swagger with Swagger UI and it's terrific. I realized > that my API will be a lot easier to understand if I can also show a little >

Re: How to override pattern from java @Pattern validation

2017-02-04 Thread tony tam
I think this is because of differences between Java and the REGEX format supported in the editor. Could you please open an issue in swagger-core so we can see about converting the syntax to the spec supported one? > On Feb 4, 2017, at 2:52 PM, alex.rhomb...@temet.ch wrote: > > Relevant part

Re: How to override pattern from java @Pattern validation

2017-02-04 Thread tony tam
Can you please share what is being emitted in the swagger definition? > On Feb 4, 2017, at 12:15 AM, alex.rhomb...@temet.ch wrote: > > I have this validation: > > /** > * @return the name > */ > @NotNull > //Validation: > @Pattern(regexp="(?U)\\w[\\w -]*\\w") > public final String

Re: How to manage the dist directory

2017-01-30 Thread tony tam
What build system do you use? What language do you work within? > On Jan 30, 2017, at 6:38 PM, Feorlen wrote: > > I have Swagger UI working with an existing webapp by copying the dist > directory to the same location as other static web content. I can access > files in

Re: using two input parameters (body param and path param)

2017-01-30 Thread tony tam
Please respond to my other question if you’d like help > On Jan 30, 2017, at 8:11 PM, Shweta Agarwal <shiwi16.agar...@gmail.com> wrote: > > No it does not have same names. > > On Mon, Jan 30, 2017 at 10:44 PM, tony tam <feh...@gmail.com > <mailto:feh...@gmail.c

Re: Making a "bundle" for a new generator

2017-01-30 Thread tony tam
his is not optimal for many reasons I won't insult you by enumerating. > > Thanks, > > ssteinerX > > On Sunday, January 29, 2017 at 9:42:55 AM UTC-5, tony tam wrote: > Hi, I do agree the structure is a bit complicated. The challenge is that we > support many different languag

Re: POST a multipartfile

2017-01-30 Thread tony tam
This works fine with the core swagger-jaxrs project. You might need to file an issue on springfox (assuming you’re using that) to see what is wrong with your setup. > On Jan 30, 2017, at 3:48 AM, antxa wrote: > > Hi all, > I've implemented a REST API in Java and one of

Re: using two input parameters (body param and path param)

2017-01-30 Thread tony tam
That’s supported and widely used. What framework are you using? Do the parameters have the same name? > On Jan 30, 2017, at 9:13 AM, Shweta Agarwal wrote: > > Hi, > > I calling a rest api with body param and path param, but in the rest api > function I am not

Re: Swagger Codegen Cli

2017-01-30 Thread tony tam
That’s not an error, it’s just an INFO statement and doesn’t harm anything. There is no error in your message, so please post it if you’re getting one. > On Jan 29, 2017, at 9:36 PM, Sivaram S wrote: > > Hi all, > I am an beginner in Swagger and I have an api.yaml

Re: Making a "bundle" for a new generator

2017-01-29 Thread tony tam
r specification where very little > configuration could drive the whole thing. > > Thanks again, > > ssteinerX > > On Saturday, January 28, 2017 at 12:52:57 PM UTC-5, tony tam wrote: > Yes look in the readme for instructions for making a new module > > On Jan 28, 2017, at 9

Re: codegen and json update

2017-01-28 Thread Tony Tam
In the readme there is a documented method for generating new modules. Then, you can look at the existing ones under the languages folder. These is a "writeOptional" method that will let you decide if a file should be overwritten. On Jan 28, 2017, at 9:35 AM, sstein...@gmail.com wrote: >>

Re: Making a "bundle" for a new generator

2017-01-28 Thread Tony Tam
Yes look in the readme for instructions for making a new module > On Jan 28, 2017, at 9:34 AM, sstein...@gmail.com wrote: > > So... > > I want to develop a new generator. > > I'd like to have it be a stand-alone bundle like: > >> /mySuperBundle >> README.md >> .gitignore >> /template >>

Re: Can we have more than one InputStream in the Swagger UI ?

2017-01-25 Thread tony tam
Hi Sundar, I think there are two issues. First off, only one File is supported per operation in the 2.0 specification. I understand that’s an annoying limitation but it is the spec, and you cannot expect tooling to support multiple files in one operation. Next, that error message is very,

Re: Swagger JavaJaxRS Jersey1 Generation

2017-01-25 Thread tony tam
Please share the command that you’re using to do the generation > On Jan 25, 2017, at 1:55 PM, Brian wrote: > > Hello, > > I upgraded to swagger-codegen 2.2.1 and I noticed that when I generate the > code my models are now using a glass fish dependency. > > " >

Re: Regarding integration of swagger ui for api documentation in existing java-spring api system

2017-01-24 Thread tony tam
All caps gentle reminder :) Please read http://swagger.io on how to integrate. > On Jan 24, 2017, at 9:05 AM, Animesh Bajpai wrote: > > GENTLE REMIDER > > On Monday, January 23, 2017 at 5:22:25 PM UTC+5:30, Animesh Bajpai wrote: > This is my bean xml > > >

Re: swagger + spring + maven + jboss

2017-01-23 Thread tony tam
Yes, take a look at the swagger-samples repository and you can see how to build generic war files which run under any container. > On Jan 23, 2017, at 11:42 AM, jvirr...@pt.com.ve wrote: > > Hi, its possible integrating swagger with jboss? > > > > -- > You received this message because you

Re: Swagger editor codegen update? Windows not supported?

2017-01-18 Thread tony tam
Thanks—can you please make sure an issue is filed so we can ensure it’s tracked? https://github.com/swagger-api/swagger-codegen > On Jan 17, 2017, at 9:55 PM, James wrote: > > Hey, > > The swagger editor

Re: Multi Language Support

2017-01-17 Thread tony tam
ep thota <pradeepthot...@gmail.com> wrote: > > Hi, > > I had placed the below lines in my index.html > > > But even then my UI is not translated to russian. Is there anything more i > need to do? > > > On Wednesday, 18 January 2017 11:14:04 UTC+5:30, tony

Re: Multi Language Support

2017-01-17 Thread tony tam
Look at the swagger-ui repository: https://github.com/swagger-api/swagger-ui#localization-and-translation > On Jan 17, 2017, at 9:31 PM, pradeep thota wrote: > > Hi, > > Is there any support

Re: Generate swagger definition from service implementation

2017-01-16 Thread tony tam
Well, you can use the tools inside swagger-core (https://github.com/swagger-api/swagger-core ) to turn a POJO into JSON or YAML, but that tool is typically used to convert an entire API into JSON or YAML. To get just a single model converted, take

Re: Build custom module project without maven

2017-01-16 Thread tony tam
I think the answer is “do it the old fashioned way—manually”. Of course you can still build it, but you’ll have to get the dependencies on your own, and add them to the class path appropriately. I suggest getting the list of dependencies from “mvn dependency:tree” > On Jan 16, 2017, at 9:40

Re: scala models parsing not working with swagger-scala-module "1.0.2" and swagger-play2 "1.5.3"

2017-01-14 Thread Tony Tam
It should be on sonatype snapshots > On Jan 14, 2017, at 10:05 AM, Михаил Ерёменко wrote: > > Yes, I can. How I can get the latest snapshot? Is it published somewhere? > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. >

Re: scala models parsing not working with swagger-scala-module "1.0.2" and swagger-play2 "1.5.3"

2017-01-14 Thread Tony Tam
Can you try with the latest snapshot? > On Jan 14, 2017, at 8:08 AM, Михаил Ерёменко wrote: > > Hello! > > I have a problem with generating model definitions from my model classes. > > Here my models: > > object DocumentsModels { > > case class FColor(id: Int, name:

Re: @PathVariable binding and Swagger

2017-01-13 Thread tony tam
Hi Kevin, I’m not positive if there are other tricks with SpringFox, but you can use @ApiImplicitParams as an annotation to your function > On Jan 12, 2017, at 8:53 PM, ksm2...@email.vccs.edu wrote: > > > > >

Re: Optional and variable object properties

2017-01-13 Thread tony tam
Use the required array: http://json-schema.org/example2.html for your example you would say: required: - attributeA - attributeB properties: attributeA: type: string # etc. > On Jan 13, 2017, at 6:53 AM, nicholas.tul...@temboinc.com wrote: > > How

Re: Swagger Framework

2017-01-11 Thread tony tam
Depends on how you integrate with Swagger. I don’t know of an integration with cherrypy, although there are thousands of community integrations. > On Jan 11, 2017, at 12:42 AM, ujjwal saini wrote: > > What is meant by this statement w.r.t. swagger framework- > >

Re: Swagger Chrome extension is not working anymore.

2017-01-10 Thread tony tam
Check for an update, and contact the creator of it in case you have the most recent. We’ve made a fix that should address this issue > On Jan 10, 2017, at 8:44 AM, Vishal Kale wrote: > > Swagger Chrome extension is not working anymore. > > For every request we are

Re: Adding scala.collection.mutable.Set as type in model

2017-01-09 Thread tony tam
There are some challenges with Scala primitives. Can you try scala.collection.mutable.Set[java.lang.Integer]? The alternative is to annotate the member with @ApiModelProperty, and you can set the datatype directly there. > On Jan 9, 2017, at 3:49 AM, tam...@gigaspaces.com wrote: > > Hi, > I

Re: Swagger options for an Service Fabric-hosted API?

2017-01-09 Thread tony tam
Hi, I do believe that parameterizing in that sort of manner may be difficult to materialize into a swagger definition. If the operation inputs and outputs are deterministic, then it should be doable. > On Jan 8, 2017, at 9:54 AM, Robert Ellis wrote: > > My apologies

Re: error fatal with swagger UI

2017-01-05 Thread tony tam
If you want help, be sure to give enough information so you can be helped. Not much can be said about this other than “there was no response from the server”. > On Jan 5, 2017, at 6:33 AM, bey hosni wrote: > > Hi everyone > > Actually i am using swaggerUi to test our REST

Re: Post request issue

2017-01-04 Thread tony tam
See here: https://github.com/swagger-api/swagger-samples/blob/master/java/java-jaxrs/src/main/java/io/swagger/sample/resource/PetResource.java#L108 No

Re: Post request issue

2017-01-03 Thread tony tam
Please take a look at the swagger petstore example at http://petstore.swagger.io > On Jan 3, 2017, at 6:46 AM, pria wrote: > > I'm trying to create a POST request with various parameters with in the body > of the request. However I'm unable to generate the swagger ui where

Re: swagger doclet does not generate the swagger documentation

2017-01-03 Thread tony tam
Hi, you should probably open an issue on that repository. > On Jan 3, 2017, at 9:08 AM, manouche.li9...@gmail.com wrote: > > hello everyone > iam new to swagger > i need your help to understand how things go > actually, i'm using swagger doclet to generate swagger specification for a > rest

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-22 Thread tony tam
Sounds like the issue then is how it’s scanning your code. Put your API package here: apiservlet.setInitParameter("com.sun.jersey.config.property.packages", "com.api.resources;io.swagger.jaxrs.json;io.swagger.jaxrs.listing"); so they can be scanned. > On Dec 22, 2016, at 10:50 AM, janet

Re: Can I return mock(sample) JSON responses using swagger?

2016-12-22 Thread tony tam
Not really. If you want mock responses you can use the swagger-inflector project, or put them in on your own. > On Dec 22, 2016, at 10:00 AM, simarpreet via Swagger > wrote: > > I am using swagger for my REST API documentation. > Like > GET >

Re: Swager documentation spelling error

2016-12-12 Thread tony tam
Thanks for passing this on—corrected! Tony > On Dec 12, 2016, at 10:16 AM, Jan Skála wrote: > > Hello I noticed a little spelling/typo error in your documentation > I think that there should be csharp according to your codegen tool. And also > the languge should be spelled

Re: How to specify a property can be null or a reference

2016-12-02 Thread tony tam
> > On Friday, December 2, 2016 at 12:05:24 PM UTC-5, tony tam wrote: > Hi, we are adding the oneOf and anyOf support in 3.0, and I believe the > “nullable” support is being added as well. > > In other words, there's no way in 2.0 to specify a property of an objec

Re: How to specify a property can be null or a reference

2016-12-02 Thread tony tam
Hi, we are adding the oneOf and anyOf support in 3.0, and I believe the “nullable” support is being added as well. > On Dec 1, 2016, at 2:38 PM, Daniel Popowich wrote: > > I've seen a lot of talk on github issues regarding swagger's lack of support > for oneOf and

Re: Codegenerater convert int? into IntNull so won't compile

2016-12-01 Thread tony tam
Please open this on the swagger-codegen project > On Dec 1, 2016, at 9:15 AM, Jason Peixoto wrote: > > [main] INFO io.swagger.codegen.languages.CSharpClientCodegen - Generating > code for .NET Framework v4.5 > > [main] WARN

Re: Ability to add custom parsing behavior to Reader.

2016-11-28 Thread tony tam
It seems reasonable to add this as a PR if you can keep it general > On Nov 24, 2016, at 4:47 PM, Zachariah Kendall > wrote: > > There seems to be a lack of ways to customize the swagger BeanConfig/Reader. > A lot of key things are private or not extendible. > > I

Re: Define default package structure in swagger file

2016-11-28 Thread tony tam
More… Info… Needed… > On Nov 28, 2016, at 2:48 AM, Kevin Thanki wrote: > > Hello, > > How to define default package structure of generated project from swagger > file ? Is it possible to define it into JSON file. > > I am facing issue in client server connection if I

Re: OAuth2 to access the Swagger files

2016-11-28 Thread tony tam
Take a look at http://petstore.swagger.io, which uses oauth2 for implicit flow. > On Nov 28, 2016, at 9:07 AM, Luiz Omori wrote: > > Clarification: I'm talking about Swagger-UI. Sorry if this is not the > appropriate forum and I would appreciate if anyone could redirect

Re: Swagger codegen server stub development lifecycle question

2016-11-22 Thread tony tam
Members of the swagger team build https://swaggerhub.com which is tackling this problem directly. > On Nov 22, 2016, at 11:51 AM, Jeff Lowery wrote: > > There are some slides here > , but not very >

Re: Standard location for Swagger 'definition'

2016-11-21 Thread tony tam
Yes, if you look here: https://github.com/OAI/OpenAPI-Specification/blob/master/README.md You’ll see a link: Looking for the next version of the OpenAPI Specification? See here. That takes you to a branch, with an updated

Re: Standard location for Swagger 'definition'

2016-11-21 Thread Tony Tam
on the solution is leaning? > >> Op 21 nov. 2016, om 20:26 heeft tony tam <feh...@gmail.com> het volgende >> geschreven: >> >> It was too much to ask several years ago when the project was still young. >> With 3.0 there is a chance we will have this. >&

Re: Standard location for Swagger 'definition'

2016-11-21 Thread tony tam
No, it’s a matter of convention not policy how and where a swagger definition is located. > On Nov 21, 2016, at 11:21 AM, Alexander Henket wrote: > > Is there a defined way to find out of service X has a Swagger definition > available? E.g. HTTP OPTIONS, a defined endpoint

Re: Use Swagger UI as only a documentation tool

2016-11-18 Thread tony tam
Try opening up the browser console and sharing the error message that you get. > On Nov 18, 2016, at 6:29 AM, Jasmine wrote: > > More info: I am using Swagger 2.0. I tested out the format of the JSON in the > Swagger Editor and it displayed correctly, however the same

Re: Setting sample example value using raw Json

2016-11-15 Thread tony tam
No, the schema is generated from the bean and from that, used for constructing a sample. > On Nov 15, 2016, at 5:06 PM, Pradeep B K wrote: > > Currently Swagger picks up the bean class to display sample input in UI. Is > there any way to refer raw json file rather than

Re: Interface code generation using swagger

2016-11-10 Thread tony tam
I assume you mean codegen? If that’s the case, just modify the templates or start your own set from scratch. > On Nov 10, 2016, at 1:54 PM, Saikiran Padishetti > wrote: > > We want to autogenerate interface implementation instead of a POJO class as > our model.

Re: Is there a concept of secured or hidden information in swagger

2016-11-08 Thread tony tam
That’s framework dependent, it doesn’t make sense to document “what’s hidden”. So depending on how you generate the definition, it may be supported. If you are using swagger-core, there’s a SwaggerSpecFilter that does just this. > On Nov 8, 2016, at 9:25 AM, Gregg Fiehler

Re: A method parameter with custom annotation should have parameter type as formData rather than body

2016-11-02 Thread tony tam
Hi this isn’t really a bug, it’s a use case that’s not supported. Please consider opening a ticket or even a PR in the swagger-core project. > On Nov 2, 2016, at 4:01 AM, Jaspreet Kaur wrote: > > Hello, > > I have integrated swagger with spring framework. > I have

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

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

2016-10-24 Thread tony tam
gt; 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 Monday, October 24, 2016 at 12:36:48 PM UTC-4, tony tam wrot

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:

Re: Defining role/permission security

2016-10-23 Thread tony tam
Hi, yes, you would create multiple securityDefinition objects--see here for details on that structure. Then, on each operation that is secured, assign the required security, which references

Re: Handling vendor extensions into templates

2016-10-21 Thread tony tam
Take a look here: https://github.com/samskivert/jmustache#-first-and--last > On Oct 20, 2016, at 11:09 PM, Alex Dobjanschi > wrote: > > First of all, I'm not sure if this is a jmustache specific topic, but

Re: Swagger reports Inline Model when returning List

2016-10-17 Thread tony tam
I'm not sure what you mean by that. I'm willing to post more info, but not > sure what you are looking for. > > The project is currently only running locally, we haven't pushed to a server > yet. Is there some configuration I need to do? > > On Monday, October 17, 2016 at 11:44:

Re: Array of objects as a parameter

2016-10-15 Thread Tony Tam
Well, the current 2.0 spec does not allow it. But the in-progress 3.0 spec does > On Oct 15, 2016, at 10:20 AM, Michael Reed <villasc...@gmail.com> wrote: > > Thanks Tony Tam, > > Does that mean that the OpenAPI spec recommends not sending objects in the > query? Th

Re: meta object containing key-value pairs where the keys are unknown strings at time of creating spec

2016-10-06 Thread tony tam
In the metas object, you would say “additionalProperties: true” > On Oct 6, 2016, at 6:06 AM, Rene Ummels wrote: > > Hi, > > I would like to convert the following JSON body into swagger. > The metas keys are unknown at the time of creating the swagger file, > key-value

Re: Is there a "after JSON load()" callback for SwaggerUI ?

2016-10-05 Thread tony tam
You need to run swaggerApi.setHost(“…”), etc. during the onComplete function > On Oct 5, 2016, at 2:05 PM, Pierre Rioux > wrote: > > I'm trying to create a SwaggerUI page in my dev environment, and I'm trying > to override the HOST and SCHEME of the API

Re: swagger-samples not showing anything when run

2016-10-05 Thread tony tam
Thanks, we’ll update this. > On Oct 2, 2016, at 10:23 PM, Andi Mullaraj wrote: > > I downloaded the swagger-samples from > https://github.com/swagger-api/swagger-samples and tried several of them but > would not be able to see any of the pet API when browsing to

Re: Jersey + Spring Boot + Swagger Integration / Example

2016-10-04 Thread tony tam
I’ve never seen that combination, so hopefully someone from the community can chime in and help. > On Oct 4, 2016, at 4:06 AM, konradbnet wrote: > > Here is the error that I get when I uncomment that 32 line in > JerseyInitialization.java file. >

Re: unique operationId

2016-09-27 Thread tony tam
f I were to add a "x-method-name" property to the > swagger spec file for that operation and modify the client sdk to use the > value of x-method-name if it existed, would that be the most appropriate way ? > > thanks > > On Tuesday, 27 September 2016 17:00:04 UTC+1,

Re: Include / handle vendor extensions in the Swagger Schema to model class (c#)

2016-09-27 Thread tony tam
Hi, I’d suggest opening an issue on the NSwag project, which is here: https://github.com/NSwag/NSwag I am sure the project author would be happy to hear about a use case that it doesn’t support. > On Sep 27, 2016, at 3:21 AM, Vishal Sharma

  1   2   >