ExScim.Schema.Repository (ex_scim v0.2.2)

Copy Markdown View Source

Schema repository interface that delegates to configurable adapters.

This module provides a consistent interface for schema operations while allowing different implementations (in-memory, database, external service, etc.).

Summary

Functions

Gets the configured schema repository adapter.

Retrieves a schema by its URI. Returns {:ok, schema} or {:error, :not_found}.

Returns true if a schema with the given URI exists.

Lists all schemas known to the configured repository.

Functions

adapter()

Gets the configured schema repository adapter.

Defaults to the in-memory default repository if not configured.

get_schema(schema_uri)

Retrieves a schema by its URI. Returns {:ok, schema} or {:error, :not_found}.

has_schema?(schema_uri)

Returns true if a schema with the given URI exists.

list_schemas()

Lists all schemas known to the configured repository.