ostrowr / ts-json-validator

Let JSON play nicely with Typescript
MIT License
342 stars 7 forks source link

support booleans as schemas #26

Closed ostrowr closed 4 years ago

ostrowr commented 4 years ago

createSchema(true) accepts everything and derives type JsonValue createSchema(false) always fails and derives type never

closes #5 and also #21