We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f9486 commit bed4a86Copy full SHA for bed4a86
1 file changed
variantlib/variants_json.py
@@ -90,6 +90,8 @@ def providers_dict(self) -> dict[str, dict[str, str | list[str] | bool]]:
90
def to_str(self) -> str:
91
"""Serialize variants.json as a JSON string"""
92
93
+ assert all(label == vdesc.label for label, vdesc in self.variants.items())
94
+
95
data: dict[str, Any] = {
96
VARIANTS_JSON_SCHEMA_KEY: VARIANTS_JSON_SCHEMA_URL,
97
VARIANT_INFO_DEFAULT_PRIO_KEY: dict(self._priorities_to_json()),
0 commit comments