mirror of
https://github.com/Bornholm/formidable.git
synced 2025-07-17 02:51:33 +02:00
feat: aggregate defaults and values
- Output merged defaults and values - Add "check" command
This commit is contained in:
5
internal/command/testdata/check/defaults.json
vendored
Normal file
5
internal/command/testdata/check/defaults.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"foo": {
|
||||
"bar": "test"
|
||||
}
|
||||
}
|
17
internal/command/testdata/check/schema.json
vendored
Normal file
17
internal/command/testdata/check/schema.json
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"foo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bar": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["bar"]
|
||||
}
|
||||
},
|
||||
"required": ["foo"],
|
||||
"additionalProperties": true
|
||||
}
|
5
internal/command/testdata/check/values-nok.json
vendored
Normal file
5
internal/command/testdata/check/values-nok.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"foo": {
|
||||
"bar": false
|
||||
}
|
||||
}
|
3
internal/command/testdata/check/values-ok.json
vendored
Normal file
3
internal/command/testdata/check/values-ok.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"test": 1
|
||||
}
|
Reference in New Issue
Block a user