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)
}-
Notifications
You must be signed in to change notification settings - Fork 0
zth/rescript-json-schema-embed
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published