Skip to content

Commit

Permalink
Report the workbench values that should be manual as schema validat…
Browse files Browse the repository at this point in the history
…ion errors
  • Loading branch information
budak7273 committed Aug 16, 2023
1 parent 4809c85 commit 5e3cba6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
14 changes: 11 additions & 3 deletions JsonSchemas/CL_Recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@
"Build_Packager",
"Build_Blender",
"Build_HadronCollider",
"BP_BuildGun",
"Please read https://docs-dev.ficsit.app/contentlib/latest/BackgroundInfo/AutomaticNameResolving.html"
]
"BP_BuildGun"
],
"not": {
"$comment": "Use workaround value `manual` for these instead.",
"enum": [
"FGWorkBench",
"Build_Workshop",
"Build_WorkBench",
"Build_WorkBenchIntegrated"
]
}
}
},
"OverrideCategory": {
Expand Down
11 changes: 11 additions & 0 deletions JsonSchemas/Tests/PurposelyFailing/Recipe_NoFGWorkBench.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./../../CL_Recipe.json",
"$comment": "This fails because `manual` workaround should be used instead of FGWorkBench",
"ProducedIn": [
"FGWorkBench",
"Build_Workshop",
"Build_WorkBench",
"Build_WorkBenchIntegrated",
"BP_BuildGun"
]
}

0 comments on commit 5e3cba6

Please sign in to comment.