Recently, HashiCorp has published terraform-plugin-framework-timetypes, which contains an RFC3339custom string type, which provides validation and semantic equality handling that is often required for RFC3339 strings. The Provider code specification already supports custom types.
Proposal
For any string types that define a format of date-time, add the timetypes.RFC3339Type type and timetypes.RFC3339 value to the custom type in the outputted provider code spec.
Use Cases or Problem Statement
JSON schema (the backbone of all the request/response body schemas in OpenAPI 3.0/3.1) supports designating a
type: string
as an RFC3339 string viaformat: date-time
: https://json-schema.org/understanding-json-schema/reference/string#dates-and-times.Recently, HashiCorp has published terraform-plugin-framework-timetypes, which contains an
RFC3339
custom string type, which provides validation and semantic equality handling that is often required for RFC3339 strings. The Provider code specification already supports custom types.Proposal
For any string types that define a
format
ofdate-time
, add thetimetypes.RFC3339Type
type andtimetypes.RFC3339
value to the custom type in the outputted provider code spec.Schema
IR Attribute
Additional Information
No response
Code of Conduct