Open melinath opened 1 year ago
There are currently about 42 JSON fields represented in yaml files, like so:
- !ruby/object:Api::Type::String name: field_name custom_expand: 'templates/terraform/custom_expand/json_schema.erb' custom_flatten: 'templates/terraform/custom_flatten/json_schema.erb' state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }' validation: !ruby/object:Provider::Terraform::Validation function: 'validation.StringIsJSON'
Since this is a common type of field, it could make sense for us to handle it as a standard subtype.
Note: This is how we handle the "Value" type in Google APIs
Also "struct" type is used in the affected Google API docs
Note: inconsistent use of expanders
Background
There are currently about 42 JSON fields represented in yaml files, like so:
Since this is a common type of field, it could make sense for us to handle it as a standard subtype.
What kind of contribution is this issue about?