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

jtd-codegen can not correctly parse the output schema files from jtd-infer (Windows 11) #92

Open
HvR-PA opened this issue Oct 25, 2024 · 0 comments

Comments

@HvR-PA
Copy link

HvR-PA commented Oct 25, 2024

Using the current versions for jtd-infer (v0.2.1) and jtd-codegen (v.0.4.1) aren't compatible with each other on Windows 11.

jtd-infer outputs the file in UTF-16 LE when this same file is used as input for jtd-codegen you will get the following error:
Error: Failed to parse input as JSON

Caused by:
expected value at line 1 column 1

This is cause by the fact that jtd-codegen can not interpret UTF-16 LE formatted text files correctly.
Converting to or copying and saving the contents of the jtd schema output from jtd-infer to UTF8 is a temporary workaround.

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

1 participant