mtrajano / laravel-swagger

Auto generates the swagger documentation of a laravel project based on best practices and simple assumptions
167 stars 71 forks source link

Include date format for date types #56

Open mlambley opened 3 years ago

mlambley commented 3 years ago

This PR includes the swagger v2 date format for date-typed body parameters.

See https://swagger.io/specification/v2/ under the header Data Types. It then goes on to list a number of formats which include date.

Primitives have an optional modifier property format.
Swagger uses several known formats to more finely define the data type being used.