Re: Mongo ObjectId in swagger api-docs url

2016-07-25 Thread tony tam
You can override the converter to turn your Company object into whatever you like. See here for an example: https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-core/src/test/java/io/swagger/model/override/CustomConverterTest.java

Re: How to use Proxy server for Swagger-UI Try it out calls

2016-07-27 Thread tony tam
Isn’t that something that is configured on the browser directly? > On Jul 26, 2016, at 2:26 AM, Vijay wrote: > > Hi, > > Using Swagger-UI, We need to make calls to APIs that are hosted on different > servers. > Based on certain actions, we change the host name

Re: Accept header and caching?

2016-08-10 Thread tony tam
caching is controlled by your server’s headers. I suggest that while you’re debugging, you should open your browser’s developer console and “disable caching”. Then you can rule that out. > On Aug 10, 2016, at 4:14 PM, Andrew Campbell > wrote: > > I am having

Re: Using my own model codegen

2016-07-15 Thread tony tam
Please look at the README. when you’re running your own custom generator, you need to specify the individual libraries. https://github.com/swagger-api/swagger-codegen#making-your-own-codegen-modules There is an

Re: Swagger UI fetching resource progress indicator during long load

2016-07-11 Thread tony tam
How long is the load time? Are you using the master build of Swagger-UI? There are many performance enhancements in there. > On Jul 11, 2016, at 11:32 AM, Dave Everly wrote: > > Hello, > > We are using Swagger UI for our REST API endpoint reference documentation. > >

Re: Can we disable Try now button

2016-07-14 Thread tony tam
You can disable the try-it-out by setting the “supportedSubmitMethods": see here: https://github.com/swagger-api/swagger-ui#parameters > On Jul 14, 2016, at 3:31 AM, Tejas Dewan wrote: > > See my comments on

Re: Swagger-UI: Just uses OPTION instead of GET/POST/PUT/DELETE

2016-08-05 Thread Tony Tam
PTIONS" > Header set Access-Control-Allow-Headers "Origin, X-Requested-With, > Content-Type, Accept" > Still getting same issue, i.e it changes POST method to OPTIONS method. > Please help me out. > >> On Thursday, 4 August 2016 17:51:23 UTC+5:30, ton

Re: Swagger throws “Swagger Error Not a valid parameter definition”

2016-08-08 Thread Tony Tam
Change "paramType" to "in" for starters. I suggest checking syntax with http://editor.swagger.io > On Aug 8, 2016, at 9:54 AM, Benjamin SOULAS > wrote: > > Hello people, I am trying to generate my own REST server in python Flask > framework, actually I only have

Re: Swagger Tutorials

2016-08-15 Thread tony tam
esh <nitesh.mot...@gmail.com> wrote: > > Any recommended language ? [Eager to learn some new Language] > Also, If you know good tutorials to start with then please share. > > Thanks > > On Monday, August 15, 2016 at 8:23:11 PM UTC+5:30, tony tam wrote: > If you don’t ne

Re: Sharing model between multiple projects

2016-08-17 Thread tony tam
reat. > > On Friday, April 22, 2016 at 8:29:01 PM UTC-4, tony tam wrote: > What language do you generate code for? You can typically use the > importMappings option to specify that instead of generating a class, you > simply use the supplied import. Depends on the target language, th

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: 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 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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-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: get the URL to access the swagger editor for a given API spec

2016-09-02 Thread tony tam
Please see here: https://github.com/swagger-api/swagger-editor/blob/master/docs/import.md#url-query-parameter For example:

Re: get the URL to access the swagger editor for a given API spec

2016-09-02 Thread tony tam
.info_swagger.json > , but it does not get loaded. Can you please take a look? Thanks > On Friday, September 2, 2016 at 1:47:45 PM UTC-7, tony tam wrote: > Please see here: > > https://github.com/swagger-api/swagger-editor/blob/master/docs/import.md#url-query-parameter > > <https://

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

2016-09-06 Thread tony tam
You can use the “nickname” attribute in the @ApiOperation annotation, see here: https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-annotations/src/main/java/io/swagger/annotations/ApiOperation.java

Re: refs in get parameters not allow

2016-09-06 Thread tony tam
Hi, they should not work, because it’s not supported by the Swagger / OpenAPI Specification. Thus the tooling does not support it. > On Sep 6, 2016, at 6:24 AM, Peppe wrote: > > Hello, I'm trying to get this code working but I get a invalid parameter > definition error. Is

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

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: [swagger2.0] How to represent an array of objects

2016-09-08 Thread tony tam
You mean the “included” JSON you are showing is a payload sent back to the caller? JSON References are stand-alone—they cannot have siblings. So you’ll have to do something a bit different. * Define a model as the intersection of the two objects, People and Comments. The shared components

Re: Multiple Custom Headers in Swagger YAML

2016-09-13 Thread tony tam
Well, it depends, but likely something like this: paths: /persons: # put here to apply to all operations in this path parameters: - name: x-mycompany-meta-name1 in: header description: my header required: false type: string - name:

Re: Server validation of body schemas

2016-09-15 Thread tony tam
Well swagger-inflector does validate payloads with the options here: https://github.com/swagger-api/swagger-inflector#payload-validation However, you can “borrow” the logic that validates payloads and do your own logic. The

Re: unique operationId

2016-09-26 Thread tony tam
Hi, you should have unique numbers for all operationId values. If the tools work, it doesn’t make it right—it just means they’re being lenient. They could throw errors but the authors have decided to gracefully handle the error in the spec. > On Sep 24, 2016, at 11:05 AM, jmls

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: 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: Is there a Java library for request/response validation that is framework agnostic?

2016-09-20 Thread tony tam
What do you mean? > On Sep 20, 2016, at 8:48 AM, Tom Akehurst wrote: > > Is there a way to adapt a Swagger spec to JSON schema? > > On Tuesday, September 20, 2016 at 3:38:03 PM UTC+1, Max Goldstein wrote: > Not only is the inflector tied to a specific stack, it seems to not

Re: Can't read swagger JSON from http://localhost:8080/v2/api-docs

2016-09-18 Thread tony tam
Well, likely the location of the api-docs isn’t what you think it is. Take a look at this project setup to see if it can help. My guess is that you have configured the server.contextPath in application.properties. The api-docs are, by default, relative to that location at /v2/api-docs. Note

Re: Where is my JSON file?

2016-09-19 Thread Tony Tam
What framework do you use? It depends on that specific implementation and configuration. > On Sep 19, 2016, at 9:11 AM, Dave Ward wrote: > > OK, easy question... i can't seem to find my JSON file to use in the > Swagger-to-pdf tool, to generate a PDF. Where are

Re: Array of objects as an input parameter

2016-09-21 Thread Tony Tam
You don't want formData, you want an object, with attribute "sources" which is type "array". > On Sep 21, 2016, at 6:50 PM, Mathieu Pheulpin wrote: > > I'm trying to describe the following post parameter in swagger: > > { > "sources": [ > { >

Re: Server validation of body schemas

2016-09-20 Thread tony tam
That’s the closest project I know of. And if something isn’t supported, you can always file an issue so that it becomes so? That’s the normal way to get features in. The hardest part of validating payloads isn’t the validation itself—it’s figuring out what schema to use, and when. > On Sep

Re: Vulnerability in handlebars.js version 2.0.0

2016-08-24 Thread tony tam
t; > I've not posted on this topic before. Anyways, good to know that it is > being addressed. Any tentative date for this fix? > > > > Thanks, > > Vijay > > On Wednesday, August 3, 2016 at 8:23:31 PM UTC+5:30, tony tam wrote: > > Hi Vijay, I believe you alr

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

Re: What is the best way to change the behavior of generated code for a model

2016-09-26 Thread tony tam
Hi, I have to say, this is pretty specific to your use case and difficult to automate. The best solution would be to create a custom template set. > On Sep 26, 2016, at 2:23 PM, HIROSHI KOIDE wrote: > > Hi experts, > > I'm using swagger to auto-generate JAX-RS server side

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: @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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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

  1   2   >