Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confluent_schema_exporter: optional context_type must be set #316

Closed
S1M0NM opened this issue Oct 5, 2023 · 0 comments
Closed

confluent_schema_exporter: optional context_type must be set #316

S1M0NM opened this issue Oct 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@S1M0NM
Copy link

S1M0NM commented Oct 5, 2023

While trying to create a confluent_schema_exporter resource with provider version 1.54.0 we got the following error:

Error: error creating Schema Exporter: 400 Bad Request: Cannot coerce empty String ("") to `io.confluent.schema.exporter.client.rest.entities.ExporterInfo$ContextType` value (but could if coercion was enabled using `CoercionConfig`)

We had not defined the context_type for our resource since the doc states its an optional value and it will default to AUTO but that does not seem to be the case. We configured it to AUTO in our resource definition and after we did so it worked.

[context_type](https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_schema_exporter#context_type) - (Optional String) Context type of the exporter. Accepted values are: CUSTOM, NONE or AUTO. Defaults to AUTO.
@linouk23 linouk23 changed the title confluent_schema_exporter optional context_type must be set confluent_schema_exporter: optional context_type must be set Oct 14, 2023
@linouk23 linouk23 added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Oct 14, 2023
@zhenli00 zhenli00 closed this as completed Nov 6, 2023
Lucatronlk pushed a commit to Lucatronlk/terraform-provider-confluent that referenced this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants