I am new to swagger and writing my first specification. I found the following date types:
------------------------------------------------ | Common name | Swagger spec 1.2 | ------------------------------------------------ | string | string | ------------------------------------------------ | date | string, date | ------------------------------------------------ | dateTime | string, date-time | ------------------------------------------------
Now my timestamp looks like 2014-12-09T13:06:08.260+0000 , is that even a date? It is not like javascript new Date(); . I also did not find the date type in the json specification .
What type and format should be taken, is it better to take a string instead of a date?
*: note that this table is a short version from the swager wiki page
source share