nat-henderson / terraform-provider-dominos

The Terraform plugin for the Dominos Pizza provider.
MIT License
1.11k stars 86 forks source link

Discrepancy between api_object and address_api object #22

Open sheelykyle opened 8 months ago

sheelykyle commented 8 months ago

Hello,

I noticed a difference between the resource inputs listed in the readme here and the scheme listed in the terraform registry.

The required schema api_object is listed, whereas the resource block in the readme is address_api_object.

When running terraform plan with address_api_object, it errors with "The argument 'api_object' is required, but no definition was found." and "An argument named 'address_api_object' is not expected here."

When running terraform plan then apply with api_object, it errors at apply with a Value Conversion Error in dominos_order.order stating

"An unexpected error was encountered trying to convert tftypes.Value into provider.resourceOrderData. This is always an error in the provider. Please report the following to the provider developer:

mismatch between struct and object: Struct defines fields not found in object: address_api_object. Object defines fields not found in struct: api_object."

Any help appreciated.