pub fn load_from_path(path: &Path) -> Result<SchemaConfig, MiniAppError>Expand description
Loads and parses a schema.yaml file from the given path.
The YAML file must conform to the following structure:
table: <table_name>
fields:
- name: <field_name>
type: string|number|boolean|array|object
required: true|false # optional, defaults to false§Arguments
path: filesystem path to theschema.yamlfile.
§Returns
A fully-parsed SchemaConfig on success.
§Errors
MiniAppError::Ioif the file cannot be opened.MiniAppError::Schemaif the YAML is malformed or structurally invalid (e.g. missingtableorfieldskeys).