The unset default values are empty strings for all the types, including integer, date, json, etc. For the json type it encodes the JSON and netbox doesn't know how to handle it.
Expected Behavior
The default values should be represented as JSON values. In the database the column type is jsonb.
Running the following command on custom fields made by terraform vs manually shows the difference in the default values. The query I use is
Summary
In Netbox 3.4.5 (Not supported yet by this provider) the default values for custom fields are empty strings and not null.
Version
Netbox version
Terraform version
Provider version
Issue details
Affected Data(s) / Resource(s)
Terraform Configuration Files
Terraform Output
Behaviors
Actual Behavior
The unset default values are empty strings for all the types, including integer, date, json, etc. For the json type it encodes the JSON and netbox doesn't know how to handle it.
Expected Behavior
The default values should be represented as JSON values. In the database the column type is
jsonb
.Running the following command on custom fields made by terraform vs manually shows the difference in the default values. The query I use is
Manual
Terraform
Steps to Reproduce
terraform apply