Scrypath.Metadata (scrypath v0.3.7)

Copy Markdown View Source

Public plain-data reflection helpers for search capabilities and resolved state.

Scrypath.Metadata does not execute search and does not expose %Scrypath.Query{}. It reflects two things:

  • declaration-backed capabilities derived from the same schema metadata and validators that already drive runtime behavior
  • resolved applied, defaulted, fixed, and unsupported state for one call or one multi-search entry

The output is intended for honest host rendering. Tenant policy, authorization, and related-data behavior stay explicitly host_owned.

Summary

Functions

reflect_search(schema_module, criteria_or_composition)

@spec reflect_search(module(), map()) :: map()

reflect_search_many(composition, shared_opts)

@spec reflect_search_many(
  map() | list(),
  keyword()
) :: map()

schema_capabilities(schema_module)

@spec schema_capabilities(module()) :: map()