Skip to content

Allow generating custom DateTime classes for date-time fields

Compare
Choose a tag to compare
@sspat sspat released this 23 Dec 09:04
· 5 commits to master since this release
f85a01f

You can now specify for each specification what class should be used for serializing and deserializing date and date-time fields in this API

open_api_server:
  specs:
    petstore:
      date_time_class: '\Carbon\CarbonImmutable'

The specified class should be an implementation of \DateTimeInterface