swagger
swagger copied to clipboard
Issue with domain names in FindModelDefinition
I don't have a full example, but I ran into a situation where I was getting an error
2017/05/26 18:14:11 Can not find definition of x model. Name looks like absolute, but model not found in github/com/.../models package
And I noticed the 'github/com' where it should be 'github.com', and I think this might be a result of the split on periods here: https://github.com/yvasiyarov/swagger/blob/b4c403f5b18c06407d5610787a2be47adc8f6e60/parser/parser.go#L396 and then its later rejoined with slashes here: https://github.com/yvasiyarov/swagger/blob/b4c403f5b18c06407d5610787a2be47adc8f6e60/parser/parser.go#L406
Let me know if you need and example to demonstrate and reproduce