mirror of
https://github.com/Bornholm/formidable.git
synced 2024-12-23 23:39:33 +01:00
34 lines
624 B
HCL
34 lines
624 B
HCL
|
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"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|