feat: add missing schema API methods (list_schemas, get_schema_form, enum value CRUD) #4
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 server provides 6 schema endpoints but the client only implements 2 (
get_schemaandget_property_schema).Missing Methods
GET /api/schemaslist_schemas()GET /api/schemas/{name}/formget_schema_form(name)POST /api/schemas/{name}/segments/{segment}/valuesadd_schema_enum_value(schema, segment, code, description)PUT /api/schemas/{name}/segments/{segment}/values/{code}update_schema_enum_value(schema, segment, code, description)DELETE /api/schemas/{name}/segments/{segment}/values/{code}delete_schema_enum_value(schema, segment, code)Context
This is critical for resolving #3 (removing hardcoded CATEGORY_NAMES). Consumers need
list_schemas()andget_schema()to dynamically fetch category codes instead of relying on a hardcoded dict.The form endpoint (
get_schema_form) returns field groups, widgets, and a category picker descriptor -- needed by silo-mod and silo-calc to render dynamic create-item forms.References