Skip to content

json2ts fails while read from STDIN #86

Closed
@ikokostya

Description

@ikokostya

Version

  • nodejs v6.10.2
  • json-schema-to-typescript@4.2.1

Code

$ cat test.json 
{}
$ cat test.json | node_modules/.bin/json2ts 
Path must be a string. Received undefined
$ echo $?
1

Expected behavior
No errors.

Looks like this is problem with strict argument checking in path module which was introduced in nodejs 6: nodejs/node#5348

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions