PaperTiger.Search (PaperTiger v1.1.0)

Copy Markdown View Source

Shared Stripe-style search support.

This implements the same structural pieces for every search endpoint: parsing to a small AST, validating fields against each resource's schema, evaluating clauses over resource maps, and returning Stripe's search_result pagination shape.

Summary

Types

field_schema()

@type field_schema() :: %{required(String.t()) => field_type()}

field_type()

@type field_type() :: :numeric | :string | :token