Hello all,

My team is in the process of retrofitting a Swagger/OpenAPI specification 
onto a relatively large API. One of the peculiarities of a given endpoint 
is that it accepts and returns a model containing datetimes but without the 
timezone, which is inferred on the server side using a location sent as a 
lat/lng in the same model:

{
  start_time: "2017-10-31T07:30:00"
  start_location: [-34, 151]
}

The Swagger spec relies on RFC3339 
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14, which 
mandates the presence of a timezone component. What we actually need here 
is a time date where the timezone is absent, as the server will opt to fail 
if that is present in the date. 

Is there any support or planned support for "local" time dates as we need 
them? While we can certainly define a `pattern` for that field, I don't 
believe that they are broadly supported in the generated clients, and the 
developer experience of using a string as opposed to a specialized object 
is subpar.

Cheers,
-j

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to