swagger-codegen-ts icon indicating copy to clipboard operation
swagger-codegen-ts copied to clipboard

Minor: unnecessary check for specLike on machines running Windows OS

Open Nedgeva opened this issue 5 years ago • 0 comments

There is a chance forisRoot false negative result due to specific filepath "normalizing" in "json-schema-ref-parser" lib: https://github.com/APIDevTools/json-schema-ref-parser/blob/0980b0a89b7181655129e4e6be7da78dd10d6a4c/lib/util/url.js#L231 So check for root ( https://github.com/devexperts/swagger-codegen-ts/blob/a1ef03aa4b3c586aa9987499917a9781eb49605b/src/index.ts#L50 ) will fail in some cases: spec path resolved by node: 'd:\somefolder\somefile' same path "normalized" by json-schema-ref-parser: 'D:\somefolder\somefile' See attached pic. 2020-08-26_14h08_13

Nedgeva avatar Aug 26 '20 20:08 Nedgeva