APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

Fix windows paths and external refs #321

Closed jonluca closed 11 months ago

jonluca commented 11 months ago

Adding in the code to fix some path issues and some relative paths.

This doesn't fully address #200 - we really need a more updated test schema.

I imported a majority of the code from that PR, though, and will take a look at some point in the future.

https://github.com/APIDevTools/json-schema-ref-parser/pull/315 windows absolute paths should be included here

coveralls commented 11 months ago

Pull Request Test Coverage Report for Build 6228842548


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/util/convert-path-to-posix.ts 9 11 81.82%
lib/util/url.ts 28 38 73.68%
<!-- Total: 57 69 82.61% -->
Totals Coverage Status
Change from base Build 4069430371: 0.2%
Covered Lines: 3202
Relevant Lines: 3294

💛 - Coveralls
github-actions[bot] commented 11 months ago

:tada: This PR is included in version 11.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: