Skip to content

Commit

Permalink
fix: parsing configuration files with more than 1 property
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Gatellier committed Jul 31, 2023
1 parent fec5a7b commit 83f4db2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@fabernovel/heart-common",
"comment": "",
"type": "none"
}
],
"packageName": "@fabernovel/heart-common"
}
17 changes: 1 addition & 16 deletions modules/common/src/validation/input/analysis/schema/config.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
{
"$id": "https://heart.fabernovel.com/schemas/config",
"type": "object",
"minProperties": 1,
"additionalProperties": {
"anyOf": [
{ "type": "string" },
{ "type": "number" },
{ "type": "boolean" },
{ "type": "null" },
{ "$ref": "/schemas/config" },
{
"type": "array",
"items": {
"$ref": "/schemas/config"
}
}
]
}
"minProperties": 1
}

0 comments on commit 83f4db2

Please sign in to comment.