cyprieng / swagger-parser

Give useful informations about your swagger files
MIT License
62 stars 59 forks source link

Fixed invalid control character error #60

Closed ruands closed 6 years ago

ruands commented 6 years ago

Fixed issue where having an apostrophe in descriptions (e.g. won't) would cause an invalid control character error.

cyprieng commented 6 years ago

@beanqueen do you remember why you needed the line ' replaced_json_string = re.sub("'(.*)'", "u'\1'", json_string)' ?

beanqueen commented 6 years ago

hi @cyprien-g , no sorry, I don't remember, but I'd think it fixed an exception that our swagger file caused. I do remember a lot of string problems with python in general.

flavianh commented 6 years ago

@cyprien-g I say we can merge it