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

Message has Unicode characters #31

Open
rao-anant opened this issue Sep 8, 2023 · 0 comments
Open

Message has Unicode characters #31

rao-anant opened this issue Sep 8, 2023 · 0 comments

Comments

@rao-anant
Copy link

rao-anant commented Sep 8, 2023

I have two simplest files below:

old_openapi.json:
{
"openapi": "3.0.0",
"info": {
"title": "foos",
"version": "1.5"
}
}

new_openapi.json:
{
"openapi": "3.0.0",
"info": {
"title": "foos",
"version": "1.4"
}
}

I run the compare as follows:
openapi-compare -o old_openapi.json -n new_openapi.json

Output:
[
{
"Severity": 2,
"Message": "The new version has a lower value than the old: System.String[] -\u003E System.String[]",
"OldJsonRef": "#/info/version",
"NewJsonRef": "#/info/version",
"Id": 1000,
"Code": "VersionsReversed",
"Mode": 1
}
]

Instead of printing 1.4 and 1.5, it printed some garbled text in the "Message" field.
Could you please let know what's causing it and how to fix it?

Thanks!

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