swagger_parser
swagger_parser copied to clipboard
DateTime format cuts time offset
The current toIso8601String()
returns the time without the offset which causes problems when the backend requires it and cuts the information about the time offset when converting, for example, to utc format.
Possible solution
Option to choose in the parser which option would the user want to choose and adding custom toIso8601StringWithOffset()
method that adds offset at the end of the converted DateTime
.