-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[BUG] [dart-dio-next] Custom Date type has no replace method #10672
Comments
Can you try using import mappings according to #10522 please. |
@kuhnroyal Will try and feedback here, thanks |
May I have "open-generator-config.yaml" this file? Thank you. @MihaMarkic |
@MihaMarkic Can you tell us if you solved this via mappings? |
@kuhnroyal For the time being I just manually updated generated sources and then I postponed the project. So I didn't do much in this direction yet. |
Description
In yaml definition I have a class with a property like this:
and below is Date definition as
Generator creates code that relies on autogenerated Date type's replace method which does not exist.
The problem is that there is no replace method on dart's Date type, at least so it seems.
openapi-generator version
5.2.1, 6.0.0
OpenAPI declaration file content or url
Full model
Generation Details
˙... -g dart-dio-next -c open-generator-config.yaml --enable-post-process-file
dart-dio yields same result
Steps to reproduce
Generate dart-dio-next code from
Suggest a fix
Deserialization should create a new Date instance instead of using replace method.
The text was updated successfully, but these errors were encountered: