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:
Christian Kellner 2021-02-10 11:23:27 +00:00
parent 48418be8de
commit 94dc11a910

View file

@ -297,7 +297,7 @@ class ModuleInfo:
if self.type in ("Stage", "Assembler"):
schema["properties"] = {
"name": {"type": "string"},
"name": {"enum": [self.name]},
"options": {
"type": "object",
**self.opts