validate_type
Validate a proposed user-defined ontology type before saving it by checking name conflicts, inheritance, and field definitions.
Instructions
Validate a proposed user-defined type before writing it to ontology-user.yaml. Returns {"valid": bool, "errors": [...], "resolved_fields": {...}}.
Args: name: Proposed type name — must not collide with any canonical type. extends: A canonical type to inherit from (e.g. "procedure", "task"). fields: Optional list of additional fields: [{name, type, values?}]. 'type' is one of: string | array | datetime | enum | boolean. For enum fields, include 'values': [...].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| fields | No | ||
| extends | Yes |