Skip to content

Commit 55e2cfd

Browse files
committed
Sync open source content 🐝 (from a72e56b5ebdec549a1fe597aaff74e179bd43c5d)
1 parent 82a84f6 commit 55e2cfd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/terraform/customize-terraform/property-customization.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ ipv4_address:
264264

265265
## Allow JSON String Attributes
266266

267-
Set the `x-speakeasy-type-override` extension to `any` to convert the associated attribute to a JSON string. This allows for inline the specification of the attribute's value, accommodating attributes with variable or dynamic structures.
267+
When `contentMediaType: application/json` is set on a property, it is automatically configured as a JSON-encoded string attribute with validation and semantic equality (e.g. ignore whitespace difference) behaviors. The JSON-encoded string is the value sent to and from the API.
268+
269+
To explicitly convert the Terraform schema to use a JSON-encoded string attribute when the OpenAPI Specification schema has a differing type, set the `x-speakeasy-type-override` extension to `any`. This allows inlining the specification of the attribute's value, accommodating attributes with variable or dynamic structures.
268270

269271
```yaml
270272
components:

0 commit comments

Comments
 (0)