-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add warning / error when something else than YAML is passed #4
Comments
I tried with https://github.com/benhughes/static-api and it works well so this come from |
A question comes to me, does static-api-generator only take YAML in input or JSON too? static-api-generator/lib/io.js Lines 17 to 22 in 81979fa
I think this is only for YAML so we can transform this issue to a feature request : support JSON as input. |
As |
And of course I'll have a feature request to support JSON input too. |
I wanted to try the generator API so I installed it:
npm i static-api-generator
I created a generator for my JSON data:
then run it:
node script.js
.And the result is that I have one char per entry:
And if I put
addIdToFiles
tofalse
I have the whole content as one stringSo it's like newline terminator are not properly detected.
I'm running it under archlinux with LN (
\n
) as final newline and utf-8 as charset. And I'm using node v10.0.0. All data files are JSON.The text was updated successfully, but these errors were encountered: