Skip to main content
added 2 characters in body
Source Link
James Z
  • 12.3k
  • 10
  • 27
  • 48

I want to create a model class that contains createdDate feild type as LocalDateTime using swagger contract, when implementing using swagger contract it is generating offsetDateTime as type in dto.

Tried with this approach Details added in swagger: createdDate: type: string format: date-time example: 2017-01-13T17:09:42.411

 createdDate: type: string format: date-time example: 2017-01-13T17:09:42.411 

Please provide correct swagger implementation for this scenario.

I want to create a model class that contains createdDate feild type as LocalDateTime using swagger contract, when implementing using swagger contract it is generating offsetDateTime as type in dto.

Tried with this approach Details added in swagger: createdDate: type: string format: date-time example: 2017-01-13T17:09:42.411

Please provide correct swagger implementation for this scenario.

I want to create a model class that contains createdDate feild type as LocalDateTime using swagger contract, when implementing using swagger contract it is generating offsetDateTime as type in dto.

Tried with this approach Details added in swagger:

 createdDate: type: string format: date-time example: 2017-01-13T17:09:42.411 

Please provide correct swagger implementation for this scenario.

Source Link

Swagger Implementation for LocalDateTime type

I want to create a model class that contains createdDate feild type as LocalDateTime using swagger contract, when implementing using swagger contract it is generating offsetDateTime as type in dto.

Tried with this approach Details added in swagger: createdDate: type: string format: date-time example: 2017-01-13T17:09:42.411

Please provide correct swagger implementation for this scenario.