Make schema name configurable — remove hardcoded "kindred-rd" #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The schema name
"kindred-rd"is hardcoded in three places withinschema_form.py, locking the addon to a single schema and preventing multi-schema deployments.Hardcoded Locations
freecad/schema_form.pyf"{api_url}/schemas/kindred-rd/properties?category={cat}"freecad/schema_form.py{"schema": "kindred-rd", ...}freecad/schema_form.pycreate_item()call passes"kindred-rd"as the schema argumentImpact
"acme-eng","widgets-prod") cannot use the New Item form at all.silo-clientsubmodule is designed to be generic and schema-agnostic — this hardcoding in the FreeCAD layer breaks that design intent.Proposed Solution
Schemapreference toFreeCADSiloSettingsunderUser parameter:BaseApp/Preferences/Mod/KindredSilo, with"kindred-rd"as the default value.Silo_Settingscommand).schema_form.pywith_fc_settings.get_schema()(or equivalent).SILO_SCHEMAenvironment variable as fallback, consistent with the existingSILO_API_URL/SILO_API_TOKENpattern.GET /api/schemas) for a dropdown rather than requiring manual entry.Acceptance Criteria
"kindred-rd"string remains in the codebase"kindred-rd")