ajv-validator / ajv-validator/ajv

Export UncheckedPropertiesSchema

Aperta
#2,218 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
14.8k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.