question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid duplicate references created w/ external file reference

See original GitHub issue

I’m noticing a regression between 1.0.32 and 1.0.33 where a swagger spec defined below will create two XYZResponse objects instead of just one as in the 1.0.32 release - I believe this is a result of this change: https://github.com/swagger-api/swagger-parser/commit/a5813748238448b14a61baf8ca732cee08561c88 @joeljons could you validate this issue - is there a different way I should be defining XYZResponse? seems like this should be working ok:

main swagger file: { "swagger": "2.0", "info": { "version": "1.0.0", "title": "Sample Issue", "description": "API", "termsOfService": "TBD", "contact": { "name": "API Team" }, "license": { "name": "MIT" } }, "host": "xyz.com", "basePath": "", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/xyz": { "$ref": "./xyz.json#/do_xyz" } }, "definitions": { "XYZResponse": { "$ref": "./xyz.json#/definitions/XYZResponse" } } }

xyz.json: { "do_xyz": { "get": { "description": "do xyz stuff", "operationId": "doXyz", "produces": [ "application/json" ], "parameters": [ ], "responses": { "200": { }, "default": { } } } }, "definitions": { "XYZResponse": { "properties": { "foo": { "type": "string" } } } } }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
joeljonscommented, Feb 8, 2018

That is exactly how I see this.

1reaction
jaz-ahcommented, Feb 8, 2018

yup that’s right @gracekarina

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to correct a #REF! error - Microsoft Support
The #REF! error shows when a formula refers to a cell that's not valid. This happens most often when ... Example - VLOOKUP...
Read more >
External reference (xref) file is missing or unresolved in ...
Opening a drawing shows a message about missing xrefs. "One or more referenced files could not be located or read. What do you...
Read more >
How to fix the #REF! error - Excel formula - Exceljet
The #REF! error occurs when a reference is invalid. In many cases, this is because sheets, rows, or columns have been removed, or...
Read more >
Reference Isn't Valid Excel Error and How to Solve It?
To solve this error, use the shortcut CTRL+F3 shortcut. This will open the name manger. Check the names and there ranges. Delete or...
Read more >
Dockerfile reference - Docker Documentation
A Dockerfile must begin with a FROM instruction. ... used in subsequent FROM and COPY --from=<name> instructions to refer to the image built...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found