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

bug: schema validation fails when location is known after apply #788

Open
matt-FFFFFF opened this issue Feb 25, 2025 · 0 comments
Open

bug: schema validation fails when location is known after apply #788

matt-FFFFFF opened this issue Feb 25, 2025 · 0 comments

Comments

@matt-FFFFFF
Copy link
Member

matt-FFFFFF commented Feb 25, 2025

When using a region randomizer, the schema validation fails with the following error. This is because the location value is known after apply.

embedded schema validation failed: the argument "body" is invalid:
│ `location` is required, but no definition was found
│  You can try to update `azapi` provider to the latest version or disable the validation using the feature flag `schema_validation_enabled = false` within the resource block

I suspect this is due to the JSON serialization. Is it possible to do anything about this?

I cannot set schema_validation_enabled because the resource is inside a module and the developer has not exposed this attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant