hashicorp / pandora

A suite of single-purpose tools enabling automation for Terraform/Azure
Mozilla Public License 2.0
64 stars 45 forks source link

Support for DateTime Offsets #8

Open tombuildsstuff opened 3 years ago

tombuildsstuff commented 3 years ago

It appears this is controlled using x-ms-code-generation-settings -> useDateTimeOffset (from ./specification/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/artifacts.json):

{
  "swagger": "2.0",
  "info": {
    "version": "2019-06-01-preview",
    "title": "ArtifactsClient",
    "x-ms-code-generation-settings": {
      "useDateTimeOffset": true
    }
  },

Whilst the API layer supports outputting other date formats - at this point in time the Data Generator assumes we're outputting RFC3339 dates (and not RFC3339 nano, which it supports - or other formats, which it/the API/Go SDK generator don't at present)

tombuildsstuff commented 2 years ago

Related to this are ISO8601 durations - https://github.com/Azure/azure-sdk-for-go/issues/15799