swagger-converter icon indicating copy to clipboard operation
swagger-converter copied to clipboard

Validator throws error for external references

Open bhardwz opened this issue 2 years ago • 0 comments

I have a Swagger file which has external references. Here is a snapshot of how I am calling out the external reference:

200:
      description: "Success"
      schema:
            $ref: "../../schema/car.yml#/definitions/services.CarMetadata"

Now Swagger Editor is not throwing error but, when I'm converting to swagger 3.0, I get this error:

---
- "malformed or unreadable swagger supplied"

This only comes up when I have external references in configuration. Please look at this.

bhardwz avatar Dec 05 '22 05:12 bhardwz