ajv-validator / ajv-validator/ajv

Export UncheckedPropertiesSchema

Open
#2,218 0 comments 0 reactions 0 assignees View on GitHub
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.12.0

**What problem do you want to solve?**
I want to create utility libraries to make working with JSONSchema easier. For example, I want to be able to create a basic `toSchema` function that looks something like:
```
const toSchema = (properties: UncheckedPropertiesSchema): JSONSchemaType => {
return {
type: 'object',
properties,
required: []
}
}
```

**What do you think is the correct solution to problem?**
Exporting more of the types used to construct JSONSchemaType

**Will you be able to implement it?**
yep, pretty sure this is a one line change

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.