Consider mapping JSON schema ipv4
and ipv6
formats to iptypes
custom types
#103
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 IPv4 or IPv6 address string via theformat
field: https://json-schema.org/understanding-json-schema/reference/string#ip-addresses.Recently, HashiCorp has published terraform-plugin-framework-nettypes, which contains an
iptypes
package withIPv4Address
andIPv6Address
custom string types, which provide validation and semantic equality handling (for IPv6) that are often required for IP address strings. The Provider code specification already supports custom types.Proposal
Proposal
format
ofipv4
, add theiptypes.IPv4AddressType
type andiptypes.IPv4Address
value to the custom type in the outputted provider code spec.Schema
IR Attribute
format
ofipv6
, add theiptypes.IPv6AddressType
type andiptypes.IPv6Address
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: