I’m afraid it still doesn’t work for me…

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of Gregg Fiehler 
<gregg.fieh...@gmail.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Tuesday, December 5, 2017 at 08:14
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Swagger Editor external reference local file vrs. remote

 

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 those…

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Gregg Fiehler 
<gregg....@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Friday, December 1, 2017 at 14:54
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger Editor external reference local file vrs. remote

 

ok I switched the file out to something I can share and gave public access

both 
$ref: 
'https://s3.amazonaws.com/st-swagger-docs/testschema.json/testschema.json#/definitions/PostalAddress'
$ref: 
'https://s3.amazonaws.com/st-swagger-docs/testschema.json/testschema.json#/definitions/PostalAddress'

fail with same error as before, but both work if I just cut and paste into 
browser

 $ref: 'http://localhost:8080/testschema.json#/definitions/PostalAddress'

the local ref still works fine.

On Friday, December 1, 2017 at 2:03:46 PM UTC-7, Ron wrote: 

That would make it difficult for me to figure out what’s wrong…

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Gregg Fiehler 
<gregg....@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Friday, December 1, 2017 at 12:37
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger Editor external reference local file vrs. remote

 

BTW their is a restriction on the S3 URL to only allow it to work inside our 
firewall so you would not be able to access it for a test.

On Friday, December 1, 2017 at 1:17:07 PM UTC-7, Gregg Fiehler wrote: 

I don't think that is the issue, the network monitor in the browser shows the 
call returned the data with a 200 response code and the response is identical 
to when I use the local file.  Also I can just cut/paste the url in the $ref in 
the browser and get the document.

On Friday, December 1, 2017 at 12:58:37 PM UTC-7, Ron wrote: 

It looks like the access to the file hosted on S3 is restricted, so the editor 
can’t read it. You’d need to enable anonymous access to it.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Gregg Fiehler 
<gregg....@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Friday, December 1, 2017 at 11:13
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger Editor external reference local file vrs. remote

 

Ok I installed the latest and then had to change the local file ref to 

$ref: 
'http://localhost:8080/ReservationEventDefinitions.json#/definitions/PostalAddress'

now that works, but the remote still does not
Errors
Resolver error at paths./products.get.responses.200.schema.items.$ref
Could not resolve reference because of: NetworkError when attempting to fetch 
resource. 

 


but the network traffic still shows it as a 200



On Friday, December 1, 2017 at 11:29:57 AM UTC-7, Ron wrote: 

Hi Gregg,

 

That’s an old version of the editor which we don’t support anymore.

Please try the latest version.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Gregg Fiehler 
<gregg....@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Friday, December 1, 2017 at 09:44
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Swagger Editor external reference local file vrs. remote

 

I have swagger editor running locally.  With Ron's help I got a local file for 
an external reference to work

fragment of swagger doc:
responses:
        200:
          description: An array of products
          schema:
            type: array
            items:
              $ref: 
'ReservationEventDefinitions.json#/definitions/PostalAddress'


I then put the same file in Amazon S3 and I cannot get it to work

  i only updated the $ref line to

$ref: 
'https://s3.amazonaws.com/st-swagger-docs/ReservationEventDefinitions.json#/definitions/PostalAddress'

and I get 
Swagger Error 
Reference could not be resolved: 
https://s3.amazonaws.com/st-swagger-docs/ReservationEventDefinitions.json#/definitions/PostalAddress

 

however when I look at the network traffic, both calls work. I have attached 
the screen print of the editor with the error when using the remote reference, 
the local one works fine.  So I assume there is a syntax issue on how I am 
doing the remote reference.  Any help would be appreciated.

 

Gregg

 

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

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

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

Reply via email to