Skip to content

Test fails on "Invalid JSON Pointer syntax" when running on Windows #18

@scscgit

Description

@scscgit

When running tests on Windows, step dereferencing schema with file references (in dereference_schema.test.js) fails with the following error:

  1) dereferencing schema with file references:
     URIError: Invalid JSON Pointer syntax.
      at decodeUriFragmentIdentifier (node_modules\@stoplight\json\index.cjs.js:1:6492)
      at Object.pointerToPath (node_modules\@stoplight\json\index.cjs.js:1:6047)
      at ResolveRunner.<anonymous> (node_modules\@stoplight\json-ref-resolver\runner.js:227:37)
      at Generator.next (<anonymous>)
      at D:\a\json-schema-to-openapi-schema\json-schema-to-openapi-schema\node_modules\tslib\tslib.js:113:75
      at new Promise (<anonymous>)
      at Object.__awaiter (node_modules\tslib\tslib.js:109:16)
      at ResolveRunner.resolve (node_modules\@stoplight\json-ref-resolver\runner.js:216:24)
      at ResolveRunner.<anonymous> (node_modules\@stoplight\json-ref-resolver\runner.js:147:63)
      at Generator.next (<anonymous>)
      at fulfilled (node_modules\tslib\tslib.js:110:62)

This can be reproduced by using windows-latest instead of ubuntu-latest in test.yml GitHub Action

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions