Showing results for 
Search instead for 
Did you mean: 

Timestamp Unix epoch problem

New Contributor

Timestamp Unix epoch problem

This is correct ?

How i can pass this parameter string (01/08/2018 00:00:00) to recive (1552562340) in query string

        - name: timestamp
          in: query
          required: true
          description: Tempo formato Unix epoch
          #1552562340 (01/08/2018 00:00:00 GMT)
            type: string
            format: unix-timestamp
        - name: signature
          in: query

Re: Timestamp Unix epoch problem

There's no defined way to describe epoch in the spec. At the moment, there's only one way to describe a timestamp.


You can use the 'format' field with whichever value, as it's an open field. Just keep in mind tooling will not automatically know what it means. Some tools may offer extensibility to support custom formats.


In OpenAPI 3, there's a process of building a registry of additional formats. You can find more information about it here.

New Here?
Join us and watch the welcome video:
Join our online event
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win