criteo / openapi-comparator

Apache License 2.0
25 stars 7 forks source link

Message has Unicode characters #31

Open rao-anant opened 1 year ago

rao-anant commented 1 year ago

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!