-
Notifications
You must be signed in to change notification settings - Fork 80
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
useClassTransformer doesn't work when modelMode is set to interface #80
Comments
@aranoe |
@Manweill I think this feature makes perfectly sense for interface models as well. If it's not possible to do with |
Can add a setting to format the response result with the |
@Manweill The |
I just looked at your code and saw that it should already produce This seems like a bug now. @Manweill can you confirm, when you run |
fix: pass format value for modeMode: "interface", which was null #80
Problem Statement:
As mentioned in #32 it is desirable to convert date types (
date
anddate-time
) toDate
object instead ofstring
. This currently only works withmodelMode: "class"
. SettingmodelMode: "interface"
results in an error.How to reproduce:
Run
swagger-axios-codegen
with following configuration:Example Error:
In addition to that, dates are not transformed to
Date
:The text was updated successfully, but these errors were encountered: