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: *<[email protected] <javascript:>> on behalf of Gregg 
> Fiehler <[email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Friday, December 1, 2017 at 11:13
> *To: *Swagger <[email protected] <javascript:>>
> *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
> ErrorsResolver 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: *<[email protected]> on behalf of Gregg Fiehler <
> [email protected]>
> *Reply-To: *"[email protected]" <
> [email protected]>
> *Date: *Friday, December 1, 2017 at 09:44
> *To: *Swagger <[email protected]>
> *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 [email protected].
> 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 [email protected] <javascript:>.
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to