Hello,
I have in one resource of my provider two fields which are in Conflicts.
Only one field should be fulfilled by the user.
It seems that it’s not possible to put these fields as required.
However I need to force the user to put at least one field.
How can I accomplish this ?
Code:
"device_id": {
Type: schema.TypeInt,
Optional: true,
ConflictsWith: []string{"virtualmachine_id"},
},
"virtualmachine_id": {
Type: schema.TypeInt,
Optional: true,
ConflictsWith: []string{"device_id"},
},
Thanks.