raml-org / raml-java-parser

(deprecated) A RAML parser based on SnakeYAML written in Java
Other
174 stars 121 forks source link

ContextPath is not working on windows ending in invalid paths. #661

Closed juandesi closed 5 years ago

juandesi commented 5 years ago

See this line here, it's searching for / but in windows systems should check for \.

https://github.com/raml-org/raml-java-parser/blob/166fd515153a1b7688d7c049221ced220410f3aa/src/main/java/org/raml/parser/tagresolver/ContextPath.java#L106

Using Paths.get() is a possible solution OR File.separator

jpbelang commented 5 years ago

Could you check that this works ? I don't have access to windows machines.

Closing, but don't be shy to reopen.