cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Conversion from date or date-time #191

Closed drenda closed 2 years ago

drenda commented 2 years ago

Hi, this is question more than an issue. In my open API spec I've many date and date-time fields:

   "createdDate": {
            "type": "string",
            "format": "date-time"
          },

I see those fields are converted as string in the Angular client. Is this a best practice on your opinion for the client side?

luisfpg commented 2 years ago

Take a look on the fourth bullet on https://github.com/cyclosproject/ng-openapi-gen#limitations The library don't do any data transformation, as it would require the object graph to be traversed on every request / response.