Skip to content

Document that a custom Inspect implementation shows redacted fields - #4805

Merged
ericmj merged 1 commit into
masterfrom
redact-inspect-docs
Oct 19, 2026
Merged

ericmj merged 1 commit into
masterfrom
redact-inspect-docs

Conversation

@ericmj

@ericmj ericmj commented Oct 19, 2026

Copy link
Copy Markdown
Member

Fields marked with redact: true are only excluded from inspect on the schema when Ecto derives Inspect for it. When the schema derives or implements Inspect itself, that implementation is used and redacted fields are shown unless it excludes them. The docs only mentioned @derive_inspect_for_redacted_fields false as the exception.

Fields marked with `redact: true` are only excluded from inspect on the
schema when Ecto derives Inspect for it. When the schema derives or
implements Inspect itself, that implementation is used and redacted
fields are shown unless it excludes them.
@ericmj
ericmj merged commit cd1511b into master Oct 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants