feat: url based data loading system

This commit is contained in:
2022-05-05 16:22:52 +02:00
parent 2a7dc481b1
commit e05722cc2f
25 changed files with 774 additions and 33 deletions

View File

@ -0,0 +1,34 @@
title = "My schema"
description = "Test"
type = "object"
required = [ "foo" ]
properties = {
foo = {
description = "Ça fait des trucs"
type = "object"
properties = {
bar = {
type = "string"
minLength = 5
}
enabled = {
type = "boolean"
}
myItems = {
type = "array"
items = {
type = "object"
properties = {
stringProp = {
type = "string"
minLength = 10
}
numericProp = {
type = "integer"
}
}
}
}
}
}
}

View File

@ -0,0 +1,4 @@
foo = {
bar = upper(totot)
enabled = true
}

View File

@ -0,0 +1,40 @@
{
"$id": "https://example.com/custom.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "My Schema",
"description": "Test",
"type": "object",
"required": [
"foo"
],
"properties": {
"foo": {
"description": "Ça fait des trucs",
"type": "object",
"properties": {
"bar": {
"type": "string",
"minLength": 5
},
"enabled": {
"type": "boolean"
},
"myItems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stringProp": {
"type": "string",
"minLength": 10
},
"numericProp": {
"type": "integer"
}
}
}
}
}
}
}
}

View File

@ -0,0 +1,6 @@
{
"foo": {
"bar": "toto",
"enabled": true
}
}