Skip to content

Implement decorator to support date serialization format #282

@markcowl

Description

@markcowl
  • Implement 'dateFormat' decorator that allows choosing 'rfc1123', 'rfc3339', 'rfc7231', and 'unixTimeStamp' date formats
  • Update emitters to respect the dateFormat set by the decorator
  • Update emitters to set date format rfc7231 in http headers, and rfc3339 in other usages when no dateFormat is provided
  • Update documentation to show usage of dateFormat decorator, and default date formats

Per design issue #https://github.com/Azure/cadl-azure/issues/1020

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions