Warn user when a deprecated Data Value is being set
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem/challenge you have**
#514 introduces the `@schema/deprecated` annotation.
However, when a data value that has been annotated as such, there's no indication to the user that they are doing so.
**Describe the solution you'd like**
When a data value is being set and its been marked as `@schema/deprecated`, report a warning (into stderr) that includes the notice
```yaml
#@data/values-schema
---
...
#@schema/deprecated "Set 'Version' with the semver version, instead."
Vers: "latest"
Version: "1.1.0"
```console
ytt: Warning: The data value "NoLongerUsed" has been deprecated: Set 'Version' with the semver version, instead.
```
**Anything else you would like to add:**
See also: https://hackmd.io/pODV3wzbT56MbQTxbQOOKQ#schemadeprecated
---
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
Contributor guide
Assessment
This issue has not been assessed yet.