Consider mapping JSON schema date-time
format to timetypes.RFC3339
custom type
#102
Open
1 task done
Labels
enhancement
New feature or request
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
The text was updated successfully, but these errors were encountered: