# `AshGrant.Verifiers.ValidateScopes`
[🔗](https://github.com/jhlee111/ash_grant/blob/v0.22.0/lib/ash_grant/verifiers/validate_scopes.ex#L1)

Spark DSL verifier that validates scope-adjacent configuration:

- Warns about deprecated `owner_field` and `scope_resolver` usage
- Raises a DslError if `instance_key` does not exist as an attribute

Implemented as a verifier so that it can safely reach into the resource's
domain (via `AshGrant.Domain.Info`) without risking the compile-time cycle
that a transformer would trigger when the domain has `code_interface`
entries.

## See Also

- `AshGrant.Dsl` - DSL definition with scope entity and `write:` option
- `AshGrant.Info` - Runtime introspection for scopes
- `AshGrant.Check` - Write action check with DB query fallback for relational scopes

---

*Consult [api-reference.md](api-reference.md) for complete listing*
