mirror of
https://github.com/Bornholm/formidable.git
synced 2025-07-22 13:31:35 +02:00
feat: url based data loading system
This commit is contained in:
34
misc/schema/hcl/my-schema.hcl
Normal file
34
misc/schema/hcl/my-schema.hcl
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
4
misc/schema/hcl/my-schema.values.hcl
Normal file
4
misc/schema/hcl/my-schema.values.hcl
Normal file
@ -0,0 +1,4 @@
|
||||
foo = {
|
||||
bar = upper(totot)
|
||||
enabled = true
|
||||
}
|
40
misc/schema/json/my-schema.json
Normal file
40
misc/schema/json/my-schema.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
misc/schema/json/my-schema.values.json
Normal file
6
misc/schema/json/my-schema.values.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"foo": {
|
||||
"bar": "toto",
|
||||
"enabled": true
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user