Include model-driven display schemas in the language schema dump (#16872)

This commit is contained in:
J. Nick Koston
2026-06-07 17:30:43 -05:00
committed by GitHub
parent 64fc09646c
commit cbc3770b11
7 changed files with 87 additions and 1 deletions

View File

@@ -1002,6 +1002,10 @@ def convert(schema, config_var, path):
else:
config_var["use_id_type"] = str(data.base)
config_var[S_TYPE] = "use_id"
elif schema_type == "schema":
# A callable CONFIG_SCHEMA that returned a representative schema
# for extraction (model-driven components); walk it as usual.
convert(data, config_var, path)
else:
raise TypeError("Unknown extracted schema type")
elif config_var.get("key") == "GeneratedID":