Enum with keys & value

2017-04-04 Thread Vivek Kumar
Hello Sir,
I want to ask you that Is there any method in swagger I can use to show the 
dropdown with different heading with respective keys.

And please tell me how I can use freeform parameter or dynamic key=> value 
parameter in Post request

-- 
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.


Re: Swagger Returns Empty API list.

2017-04-04 Thread Faisal Khan
But it should still work with all the correct configuration, right?
So can you please help me get it up and running.

Thanks,
Faisal.

On Thu, Mar 30, 2017 at 8:38 PM, Ron Ratovsky  wrote:

> You’re using an ancient version of a product. Google for Springfox and
> start using that instead.
>
>
>
>
>
>
>
> *From: * on behalf of "
> faisal.k...@hashedin.com" 
> *Reply-To: *"swagger-swaggersocket@googlegroups.com" <
> swagger-swaggersocket@googlegroups.com>
> *Date: *Thursday, 30 March 2017 at 8:04
> *To: *Swagger 
> *Subject: *Swagger Returns Empty API list.
>
>
>
> I am trying to integrate swagger with my Spring 4.1.9 project. Have added
> dependency:
>
> <*groupId*>com.mangofactory
>
> <*artifactId*>swagger-springmvc
> <*version*>1.0.0
>
>
>
> Created a bean which does:
>
>
>
> *private *SpringSwaggerConfig *springSwaggerConfig*;
>
> @Autowired
> *public void *setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) 
> {
> *this*.*springSwaggerConfig *= springSwaggerConfig;
> }
>
> @Bean
> *public *SwaggerSpringMvcPlugin customImplementation()
> {
> *return new 
> *SwaggerSpringMvcPlugin(*this*.*springSwaggerConfig*).apiInfo(apiInfo())
> .includePatterns(*"api/path*"*);
> }
>
> *private *ApiInfo apiInfo() {
> ApiInfo apiInfo = *new *ApiInfo(*"Swagger"*,
> *"APIs for Swagger"*,
> *"http://google.com "*, *"cont...@google.com 
> "*,
> *"Private, Confidential"*, *""*);
> *return *apiInfo;
> }
>
>
>
> Have added Api documentation to a few endpoints and trying to access 
> localhost:8080/api-docs
>
> getting this:
>
> 1.0
>
> 1.2
>
> 
>
> 
>
>
>
> APIs came as empty, can someone help me?
>
>
>
> Thanks.
>
>
>
> --
> 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.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Swagger" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/swagger-swaggersocket/qZF-eULhy_8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.


All config options available with hapi?

2017-04-04 Thread Starquest
For the demo available at http://editor.swagger.io/ -- are all those 
options available with hapi?  It seems that hapi-swagger provides some, but 
maybe not all of them.

-- 
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.


Re: Enum with keys & value

2017-04-04 Thread Ron Ratovsky
Hi Vivek,

 

For enum values, you can use:

 

type: string

enum:

  - foo

  - baar

 

(this can be any type really)

 

For dynamic keys:

 

type: object

additionalProperties:

  type: string

 

The type here can also be anything you’d like the value to be, but they keys 
are dynamic this way.

 

From:  on behalf of Vivek Kumar 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 0:43
To: Swagger 
Subject: Enum with keys & value

 

Hello Sir,
I want to ask you that Is there any method in swagger I can use to show the 
dropdown with different heading with respective keys. 

 

And please tell me how I can use freeform parameter or dynamic key=> value 
parameter in Post request

-- 
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.


-- 
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.


Re: Swagger Returns Empty API list.

2017-04-04 Thread Ron Ratovsky
I can’t say. Springfox is a community project and not one that we can support. 
Better refer to their document and file a ticket on the project if needed.

 

 

 

From:  on behalf of Faisal Khan 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 1:20
To: "swagger-swaggersocket@googlegroups.com" 

Subject: Re: Swagger Returns Empty API list.

 

 

But it should still work with all the correct configuration, right?

So can you please help me get it up and running.

 

Thanks,

Faisal.

 

On Thu, Mar 30, 2017 at 8:38 PM, Ron Ratovsky  wrote:

You’re using an ancient version of a product. Google for Springfox and start 
using that instead.

 

 

 

From:  on behalf of 
"faisal.k...@hashedin.com" 
Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Thursday, 30 March 2017 at 8:04
To: Swagger 
Subject: Swagger Returns Empty API list.

 

I am trying to integrate swagger with my Spring 4.1.9 project. Have added 
dependency: 

com.mangofactory 
swagger-springmvc
1.0.0
 
Created a bean which does: 
 
private SpringSwaggerConfig springSwaggerConfig;

@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}

@Bean
public SwaggerSpringMvcPlugin customImplementation()
{
return new 
SwaggerSpringMvcPlugin(this.springSwaggerConfig).apiInfo(apiInfo())
.includePatterns("api/path*");
}

private ApiInfo apiInfo() {
ApiInfo apiInfo = new ApiInfo("Swagger",
"APIs for Swagger",
"http://google.com";, "cont...@google.com",
"Private, Confidential", "");
return apiInfo;
}
 
Have added Api documentation to a few endpoints and trying to access 
localhost:8080/api-docs
getting this:
1.0
1.2


 
APIs came as empty, can someone help me?
 
Thanks.
 
-- 
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.

-- 
You received this message because you are subscribed to a topic in the Google 
Groups "Swagger" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/swagger-swaggersocket/qZF-eULhy_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

-- 
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.


-- 
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.


Re: All config options available with hapi?

2017-04-04 Thread Ron Ratovsky
The online editor doesn’t offer any configurations at the moment.

Not sure if hapi specifically does, would recommend looking at 
https://github.com/swagger-api/swagger-codegen for more details.

 

 

 

From:  on behalf of Starquest 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 6:31
To: Swagger 
Subject: All config options available with hapi?

 

For the demo available at http://editor.swagger.io/ -- are all those options 
available with hapi?  It seems that hapi-swagger provides some, but maybe not 
all of them.

-- 
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.


-- 
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.


$ref notation reference

2017-04-04 Thread Bev Young
Can you tell me where to find a reference to "external references", i.e. 
$ref: '#/definitions/s' ?

-- 
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.


Re: $ref notation reference

2017-04-04 Thread Ron Ratovsky
Not sure what you mean.

 

 

From:  on behalf of Bev Young 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 10:38
To: Swagger 
Subject: $ref notation reference

 

Can you tell me where to find a reference to "external references", i.e. $ref: 
'#/definitions/s' ?

-- 
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.


-- 
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.


Swagger2Feature v/s OsgiSwaggerUiResolver

2017-04-04 Thread Pankaj Joshi
Hi,

I am working swagger feature 2 with cxf 3.1.0 and swagger 2.2.8. I am not 
able to see this is working for me. I have "org.osgi.framework.FrameworkUtil" 
classes added in my project which is not allowing my tomcat to pick 
swagger-ui library.

I have seen few on the blogs says this is known defect and going to fix in 
cxf 3.2.0, but that version is not released yet. Do we have a work around 
this. Please help.

-- 
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.


Re: Swagger2Feature v/s OsgiSwaggerUiResolver

2017-04-04 Thread Ron Ratovsky
Hi Pankaj – for CXF specific questions, it’d be better to post them in their 
mailing list.

 

 

 

From:  on behalf of Pankaj Joshi 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 13:36
To: Swagger 
Subject: Swagger2Feature v/s OsgiSwaggerUiResolver

 

Hi, 

 

I am working swagger feature 2 with cxf 3.1.0 and swagger 2.2.8. I am not able 
to see this is working for me. I have "org.osgi.framework.FrameworkUtil" 
classes added in my project which is not allowing my tomcat to pick swagger-ui 
library.

 

I have seen few on the blogs says this is known defect and going to fix in cxf 
3.2.0, but that version is not released yet. Do we have a work around this. 
Please help.

-- 
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.


-- 
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.


Two element array of mixed type

2017-04-04 Thread Matthew Boston
How do I specify that an endpoint returns an array of two element arrays, 
one value is a string, one value is a number?

Like so:

[["foo", 1], ["bar", 2], ["baz", 3]]

Thanks!

-- 
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.


Re: Two element array of mixed type

2017-04-04 Thread Ron Ratovsky
The most you can do is describe an array of arbitrary values:

 

type: array

items:

  type: array

  items: {}

 

 

 

From:  on behalf of Matthew Boston 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Tuesday, 4 April 2017 at 16:46
To: Swagger 
Subject: Two element array of mixed type

 

How do I specify that an endpoint returns an array of two element arrays, one 
value is a string, one value is a number? 

 

Like so:

 

[["foo", 1], ["bar", 2], ["baz", 3]]

 

Thanks!

-- 
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.


-- 
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.


Re: Header undefined

2017-04-04 Thread Dinesh Babu
could some one on this below example please. provide me the json file 
similar to the below example.

On Tuesday, April 4, 2017 at 7:43:56 AM UTC+5:30, Dinesh Babu wrote:
>
> I tried with the default example provided by Swagger(PetStore on Heroku). 
> In order to explore how it works after introducing header(token), added the 
> header(below code for reference).
>
>
> 
>
>
> On Tuesday, April 4, 2017 at 1:30:34 AM UTC+5:30, Ron wrote:
>>
>> Are you using swagger-ui or swagger-editor?
>>
>> Can you share your spec?
>>
>>  
>>
>>  
>>
>>  
>>
>> *From: * on behalf of Dinesh Babu <
>> onlinepur...@gmail.com>
>> *Reply-To: *"swagger-sw...@googlegroups.com" <
>> swagger-sw...@googlegroups.com>
>> *Date: *Monday, 3 April 2017 at 2:02
>> *To: *Swagger 
>> *Subject: *Header undefined
>>
>>  
>>
>> Hi 
>>
>>  
>>
>> I have a Rest api which is GET verb, which accepts Authorization as 
>> header and return type is array of objects. In this scenario i am getting 
>> header undefined error in swagger.io. But when i copy,paste the script 
>> generated by swagger to fiddler it work fine. Could some one help on this?. 
>> if any one has come across this scenario could you please share the json 
>> file?.
>>
>> -- 
>> 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.
>>
>>

-- 
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.