meta: require name to match module in schema
When generating the schema information for a Stage, Assemgbler, ensure that `name` is actually the one that matches the module.
This commit is contained in:
parent
48418be8de
commit
94dc11a910
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ class ModuleInfo:
|
||||||
|
|
||||||
if self.type in ("Stage", "Assembler"):
|
if self.type in ("Stage", "Assembler"):
|
||||||
schema["properties"] = {
|
schema["properties"] = {
|
||||||
"name": {"type": "string"},
|
"name": {"enum": [self.name]},
|
||||||
"options": {
|
"options": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
**self.opts
|
**self.opts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue