-
Notifications
You must be signed in to change notification settings - Fork 91
Malformed json/yaml model file in discoverDomain due to with newline handling #999
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
Comments
@rssh22 I am not seeing the PR. Are you sure you created it on this repo? |
@robertpatrick I did not create the PR. I guess that you did because of your comment in #823 (comment)_ As you can see in the release notes for 1.9.9 this bug was solved there: |
@rssh22 OK, your previous comment included an unquoted reference to a comment I made 9 months ago so I read it as your comment. |
Here is another example of malformed json generated by the tool:
|
@rssh22 This JSON output formatting issue is a different problem, not related to the YAML parser issues surrounding newlines. I will ask someone to look into this... |
I though it was the same cause. Thank you @robertpatrick. |
PR #1011 should fix the JSON output formatting issue, once merged and released. Since most people are using YAML, this was an oversight on our part. The JSON parser was already properly "de-escaping" the special characters but the code generating the JSON output was not properly escaping them. |
Merge #1101 partially fixes this issue. Another change is pending. |
I believe that this issue was about the output formatting only so closing this issue as resolved by PR #1011. In WDT 2.0, we are replacing the YAML parser and output formatter with snakeyaml. This will cause some minor changes in what the input YAML needs to look like as well as how the YAML output is formatted (hence the 2.0 version) but we hope it will provide a better all-around YAML experience for our users. |
As of #829 this should be solved. However, the problem happens again in release 1.9.18.
@Bneve5 @rssh22 it appears that the core issue was the embedded newline characters in the string value. I have created a PR that corrects the embedded newline handling that I believe will fix this issue.
Originally posted by @robertpatrick in #823 (comment)
The text was updated successfully, but these errors were encountered: