Skip to content

External references are set to nil if response to remote fails with http != 200 #343

@steffakasid

Description

@steffakasid

I've a swagger document with an external reference. Like this:

paths:
  /pet:
    $ref: 'http://localhost:1080/some/path/ref.yaml'

Currently I mock this dependency via MockServer. When the MockServer isn't running. The swagger loading panics, which is finde I think. But when I do not load the expectation to return the content of ref.yaml, so MockServer just returns an HTTP 403 I don't get any error, the reference is just noch replaced. Is there any possibility to throw an error if the reference couldn't be loaded correctly?

Regards
Steffen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions