ajv-validator / ajv-validator/ajv
ajv.compileSerializer(jsonschema)
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 14.8k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
**What version of Ajv you are you using?**
8.11.0
**What problem do you want to solve?**
- Currently, only `ajv.compileSerializer(jtd)`
https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json
- There is `typescript-json-schema` which can generate json-schema from typescript
- Seems there is no tool can generate json-type-definition from typescript
https://www.npmjs.com/search?q=generate%20json%20type%20definition
https://www.npmjs.com/search?q=generate%20jtd
**What do you think is the correct solution to problem?**
```
ajv.compileSerializer(jsonschema)
```
**Will you be able to implement it?**
Contributor guide
Assessment
This issue has not been assessed yet.