static create_from(data, version) → {Schema}
Create a `Schema` from a dictionary. Automatically detects and converts legacy-format schemas.
Properties
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
data | dict | Schema dictionary (new or legacy format). | ||
version | str | <optional> | '' | Schema version override. |
Returns:
A new `Schema` instance.
- Type
- Schema
Raises:
SchemaError- If the dict is missing required keys.