You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an aside, my thinking is that validator library should support './user.json'; however, the treatment of $ref is moderately confusing, so I'm hesitant to claim certainty:)
@crankydillo This was just addressed in the swagger-parser project. The ./a.json !== a.json is actually a URI design, and needs to be specially-cased for "reasonable, expected" behavior. See here.
Description
Trouble using relative links.
Using a reference:
"$ref": "user.json"
Starting swagger-codgen-cli with
-i http://localhost:8282/schema/rest/v1/swagger.json
user.json
is available underhttp://localhost:8282/schema/rest/v1/user.json
but not found by codegen.I can't change this notation for relative links because:
Swagger-codegen version
2.2.0-SNAPSHOT
Suggest a Fix
It looks that
io.swagger.models.refs.GenericRef
is wrong. The default case is INTERNAL link.The text was updated successfully, but these errors were encountered: