fix for https://github.com/wordnik/swagger-ui/issues/644, verify path object by type
updated index
Merge branch 'master' of https://github.com/wordnik/swagger-ui