tazatechnology / openapi_spec

Dart based OpenAPI specification generator and parser
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Closes #43 Decode JSON response as UTF-8 by default #44

Closed walsha2 closed 9 months ago

walsha2 commented 9 months ago

Add a universal _jsonDecode method to handle the JSON decode logic. Right now it just uses a default utf8.decode decoder for everything, but in order to be robust we should probably add some charset checking logic in case there is an alternate charset defined from the server response. Adding this global function makes it easy to define this logic in one place.