An open API service indexing awesome lists of open source software.

https://github.com/totaltechgeek/otter-json-schema

A joi-like tool for generating json-schema
https://github.com/totaltechgeek/otter-json-schema

Last synced: 8 months ago
JSON representation

A joi-like tool for generating json-schema

Awesome Lists containing this project

README

          

# otter-json-schema

This module is designed to generate JSON Schema from a syntax very similar to joi.

```js
const Schema = require('otter-json-schema')
const schema = Schema.object({
a: Schema.number().min(5).max(10),
b: Schema.number()
}).toJSON()
```

### Todo
- Documentation