macula_mri_registry (macula v0.20.5)
View SourceMRI Type Registry
Manages the registry of valid MRI types with their schemas. Provides both built-in types and runtime registration of custom types.
Built-in types are always valid. Custom types can be registered at runtime and optionally scoped to specific realms.
Summary
Functions
Get the schema for a type.
Check if a type is valid (built-in or registered).
Check if a type is valid for a specific realm.
List only custom registered types.
List all valid types (built-in + custom).
Get the path schema for a type.
Register a custom type with schema. Schema map can contain: - description: binary() - Human-readable description - path_schema: [atom()] - Path segment roles (e.g., [org, device_id]) - parent_type: atom() - Type of the parent MRI - realm: binary() - Restrict to this realm (undefined = global)
Start the registry as a linked process.
Start the registry with options.
Unregister a custom type.
Validate that a path matches the expected schema for a type.
Functions
Get the schema for a type.
Check if a type is valid (built-in or registered).
Check if a type is valid for a specific realm.
-spec list_custom_types() -> [binary()].
List only custom registered types.
List all valid types (built-in + custom).
Get the path schema for a type.
Register a custom type with schema. Schema map can contain: - description: binary() - Human-readable description - path_schema: [atom()] - Path segment roles (e.g., [org, device_id]) - parent_type: atom() - Type of the parent MRI - realm: binary() - Restrict to this realm (undefined = global)
Start the registry as a linked process.
Start the registry with options.
Unregister a custom type.
Validate that a path matches the expected schema for a type.