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

https://github.com/zth/rescript-json-schema-embed


https://github.com/zth/rescript-json-schema-embed

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

```rescript
open RescriptSchema

module TestSchema = %generated.jsonSchema("./testschema.json")

let data = %raw(`{
"Id": 1,
"Title": "My first film",
"Age": 17
}`)

switch data->S.parseWith(TestSchema.schema) {
| Ok(content) => Console.log(content)
| Error(err) => Console.error(err)
}
```