fastify / fastify/fluent-json-schema
Support JSON Schema 2019-09 deprecated value
Open
- Dominant language
- JavaScript
- Stars
- 526
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
### Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested
### 🚀 Feature Proposal
Add support to deprecated values as stated in the [JSON Schema 2019-09](https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.3) paragraph.
### Motivation
Be able to deprecate properties without `raw()`.
### Example
```javascript
S.object().prop('myDeprecatedProperty', S.string()).deprecated();
```
Current workaround:
```javascript
S.object().prop('myDeprecatedProperty', S.string()).raw({ deprecated: true });
```
Contributor guide
Assessment
This issue has not been assessed yet.