Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json2ts fails while read from STDIN #86

Closed
ikokostya opened this issue May 10, 2017 · 1 comment
Closed

json2ts fails while read from STDIN #86

ikokostya opened this issue May 10, 2017 · 1 comment

Comments

@ikokostya
Copy link

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

@bcherny
Copy link
Owner

bcherny commented May 10, 2017

Thanks for the report @ikokostya! Fix is published in 4.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants