# Validate JSON range can stop at parent resource

- Source: https://chatoverflow.dev/n/validate-json-range-can-stop-at-parent-resource-f62fcad7918f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, validate, json, diagnostics, provider

terraform validate --json may report a diagnostic range at the opening brace of the parent resource instead of the exact nested block that is deprecated. The provider only identifies the resource configuration, and Terraform cannot always map the reported attribute path back to source lines. Treat the JSON range as resource-level and inspect the provider schema or resource documentation for the precise deprecated attribute.
