Re: Relative path in OAuth 2.0 authorizationUrl is allowed in OAS 3?

2017-12-05 Thread Yuto SASAKI
Thanks for the reply! I filed an issue https://github.com/swagger-api/swagger-ui/issues/3992 2017年12月6日水曜日 2時40分38秒 UTC+9 Ron: > > Looks like a UI bug. Can you file a ticket with the project? > > > > > > > > *From: * on behalf of Yuto > SASAKI

Re: Default value used in swagger query parameters

2017-12-05 Thread Ron Ratovsky
It could be, but it depends on the scenario. The producer/consumer isn’t necessarily the server/client. When an API call is executed by the client to the server – the server is the consumer of the request. When the server returns a response, the client is the consumer of the response.

Re: how to add request headers ?

2017-12-05 Thread Ron Ratovsky
It’s really hard to tell when looking at a snippet, would need the entire definition. From: on behalf of O haya Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December

how to add request headers ?

2017-12-05 Thread O haya
Hi, I am trying to add some request headers, that I think I need for CORS, but I am having trouble following this page: https://apihandyman.io/writing-openapi-swagger-specification-tutorial-part-5-advanced-input-and-output-modeling/ When I try to add this: userAgent: name: User-Agent

Default value used in swagger query parameters

2017-12-05 Thread hasa
Given that we tend to generate clients from Swagger, we've been looking to have a default value used for these scenarios. For example, we support many api versions, but we want to embed in the swagger which version the *clients* should be sending to the *server*. We never want the server to

Re: Is there a maintenance page for downtime and such?

2017-12-05 Thread Pouyan Assadi
Hi Ron - Apologies on the confusion, I just synced with my devs and realized it's simply javascript that we'll be using and not an actual service. Thank you On Tue, Dec 5, 2017 at 2:23 PM, Ron Ratovsky wrote: > That’s the specification, not a specific tool. > > > > > > > >

Re: Is there a maintenance page for downtime and such?

2017-12-05 Thread Ron Ratovsky
That’s the specification, not a specific tool. From: on behalf of Pouyan Assadi Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December 5, 2017 at 14:12 To:

Re: Is there a maintenance page for downtime and such?

2017-12-05 Thread Pouyan Assadi
Hi - I am referring to the Swagger OpenAPI, v2. On Tue, Dec 5, 2017 at 1:59 PM, Ron Ratovsky wrote: > Which product are you referring to? > > > > > > > > *From: * on behalf of Pouyan > Assadi > *Reply-To:

Re: Is there a maintenance page for downtime and such?

2017-12-05 Thread Ron Ratovsky
Which product are you referring to? From: on behalf of Pouyan Assadi Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December 5, 2017 at 13:26 To: Swagger

Re: Swagger Editor external reference local file vrs. remote

2017-12-05 Thread Gregg Fiehler
Thanks Ron, I set the CORS config and now it works. I thought CORS did not fetch the document if it did not get the proper CORS response so I did not look for that. I really appreciate your time and patience. Cheers Gregg > > -- You received this message because you are subscribed to the

Is there a maintenance page for downtime and such?

2017-12-05 Thread Pouyan Assadi
Hi there, Does anyone know if there is a site that displays down time and other maintenance and such? Also, is there a way to submit tickets and/or an escalation process? We'll be implementing Swagger for our company so we just need to have some basic stuff documented. Thanks! -- You

Re: Make Swagger work with Relative URL

2017-12-05 Thread Ron Ratovsky
Yup. From: on behalf of T Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December 5, 2017 at 10:42 To: Swagger

Re: Make Swagger work with Relative URL

2017-12-05 Thread T
Ok when this app is on the live server it will just take the base url path so for example say my locahost:8080/Application/Path will become mysite.com/Application/Path ? Does this need any additional configuration once this is deployed perhaps potential problems or issues or it should

Customize swagger-ui.html

2017-12-05 Thread A.K.
Hi, How to change swagger-ui.html file. I want to make the below changes. 1. remove show/hide icon 2. remove text field from the value, and once click on try it out button show the text field. 3. change the color of button 4. change the Parameter to Summary or whatever we want to display.

Re: Make Swagger work with Relative URL

2017-12-05 Thread Ron Ratovsky
Okay, it’s definitely not version 1.0.0 but we can work with that. If it’s installed as part of your Java app, it’ll be installed on the server as part of it as well. You should be able to access it just like you access your app. From: on

Re: Make Swagger work with Relative URL

2017-12-05 Thread T
Swagger-UI yes Version 1.0.0 , This is sitting in the backend Java Currently there is a folder "Swagger" > with index.html | swagger-ui-bundle.js | swagger-ui-standalone-preset.js | swagger-ui.css and finally swagger-ui.js These are all present in the folder hopefully that helps out a bit

Re: Where can I specify the authorizationUrl for OAuth2 protected endpoints?

2017-12-05 Thread Ron Ratovsky
It’s under ‘securityDefinitions’. From: on behalf of Nicolae Marasoiu Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December 5, 2017 at 05:32 To: Swagger

Re: Make Swagger work with Relative URL

2017-12-05 Thread Ron Ratovsky
No worries about being new, but I need more than that. We have over 10 projects under the Swagger name – which project are you talking about? Swagger-UI? Editor? How was it set up? Which version? From: on behalf of T

Re: Relative path in OAuth 2.0 authorizationUrl is allowed in OAS 3?

2017-12-05 Thread Ron Ratovsky
Looks like a UI bug. Can you file a ticket with the project? From: on behalf of Yuto SASAKI Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Monday, December 4, 2017 at 23:12

Re: Make Swagger work with Relative URL

2017-12-05 Thread T
To start off i'm new to swagger for forgive my lack of knowledge on the topic or specificity in the domain but essentially I am interactive with Swagger right now through my localhost:8080 But I will be moving this to a live server shortly, what I want to do is allow the base url to change and

Re: Make Swagger work with Relative URL

2017-12-05 Thread Ron Ratovsky
Swagger is not a single tool but a collection of those. Can you explain what you’re trying to do exactly? From: on behalf of T Reply-To: "swagger-swaggersocket@googlegroups.com"

Re: Swagger Editor external reference local file vrs. remote

2017-12-05 Thread Ron Ratovsky
Thanks, that worked. It looks like it’s a CORS issue. If you check the console, you’ll see something like this: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://s3.amazonaws.com/st-swagger-docs/testschema.json. (Reason: CORS header

Re: Swagger Editor external reference local file vrs. remote

2017-12-05 Thread Gregg Fiehler
try this https://s3.amazonaws.com/st-swagger-docs/testschema.json#/definitions/PostalAddress I had a typo in the URL I sent before, but that is not what is in my swagger document so I am unsure how I messed that up. -- You received this message because you are subscribed to the Google Groups

Make Swagger work with Relative URL

2017-12-05 Thread T
Hi guys I'm a Swagger newbie, I'm trying to change my swagger url which is currently on my localhost to work once deployed for example mysite.com. I have looked at some of the documentation and examples and it seems there is not too many concrete examples or are older from a few years ago is

Re: Swagger Editor external reference local file vrs. remote

2017-12-05 Thread Ron Ratovsky
I’m afraid it still doesn’t work for me… From: on behalf of Gregg Fiehler Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, December 5, 2017 at 08:14 To: Swagger

Re: Swagger Editor external reference local file vrs. remote

2017-12-05 Thread Gregg Fiehler
Hi Ron, I do apologize, I had set it up on Friday to give public read only access and someone changed it back over the weekend. I just fixed it so it should work now. Again sorry for the inconvenience. Gregg On Monday, December 4, 2017 at 4:18:44 PM UTC-7, Ron wrote: > > I still can’t access

Where can I specify the authorizationUrl for OAuth2 protected endpoints?

2017-12-05 Thread Nicolae Marasoiu
Hi, @SwaggerDefinition 1.5.17 does not seem to contain a property for authorization. Do you know where I would describe the URL of the authorization server? Thank you -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group

Re: swagger-ui-bundle.js returned from memory cache on chrome, file length incorrect

2017-12-05 Thread Nicolae Marasoiu
I know I can evict my browser caches, but I am more interested in solving this for the other developers and future users and avoid this scenario where the js library upgrade does not propagate to the browser. Thanks in advance for your tips On Tuesday, December 5, 2017 at 10:53:47 AM UTC+2,

Re: swagger-ui-bundle.js returned from memory cache on chrome, file length incorrect

2017-12-05 Thread Nicolae Marasoiu
When I to a GET on http://localhost:9898/cache/swagger/swagger-ui-bundle.js I get the actual version of the file (having the initOAuth method), but in chrome Inspect I see that the request is marked as 200 OK (from memory cache) and old data about it is there including its old length and its

Re: swagger-ui-bundle.js returned from memory cache on chrome, file length incorrect

2017-12-05 Thread Nicolae Marasoiu
Sorry, I made a manual request to the server for the js file and indeed the server returns the old version, thank you On Tuesday, December 5, 2017 at 10:53:47 AM UTC+2, Nicolae Marasoiu wrote: > > Hi, > In my understanding how caching is supposed to work, the browser should > send a request to

swagger-ui-bundle.js returned from memory cache on chrome, file length incorrect

2017-12-05 Thread Nicolae Marasoiu
Hi, In my understanding how caching is supposed to work, the browser should send a request to the server for the javascript file, mentioning in that request what version of the file it has, in terms of timestamp, file length, etag, media types and/or other ways. The server will respond with