Parameter validators for the sync REST API endpoints.
Each validator accepts the raw params map from the Phoenix controller
action, checks that the required fields are present and non-empty, and
returns either {:ok, validated_struct} (with typed field names as
atoms) or {:error, :missing_fields, [String.t()]}. A required field
that is not a string (a number, a list, an object) counts as missing.
validate_status_params/1 additionally checks that "status" is one of
"active", "suspended", or "revoked" and returns
{:error, :invalid_status} if not.
The validators are stateless and have no dependency on Phoenix or Connections — they're pure param shape checks.
Summary
Functions
Validates a PostgreSQL table identifier, the entry-point guard the
controller uses before any introspection. Same rule as
SchemaInspector.valid_identifier?/1, which it delegates to.
Functions
Validates a PostgreSQL table identifier, the entry-point guard the
controller uses before any introspection. Same rule as
SchemaInspector.valid_identifier?/1, which it delegates to.