Skip to content

Document built-in representer lookup and API-local mappings - #46

Merged
dblock merged 1 commit into
ruby-grape:masterfrom
dblock:docs/representer-lookup-1
Oct 27, 2026
Merged

dblock merged 1 commit into
ruby-grape:masterfrom
dblock:docs/representer-lookup-1

Conversation

@dblock

@dblock dblock commented Oct 27, 2026

Copy link
Copy Markdown
Member

Fixes #1.

Use Grape’s existing Model::Entity inference for module representers and decorators, or an API-local represent Model, with: Decorator mapping. Document the explicit with: override and that inference requires present; no global constant-name guessing, implicit formatter mutation, or singular/plural guessing is necessary.

Verify inferred modules/decorators, explicit overrides, and API-local mapping through actual requests.

AI-authored on behalf of @dblock.

@dblock
dblock force-pushed the docs/representer-lookup-1 branch from 7318d0d to b2d6709 Compare October 27, 2026 10:23
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the docs/representer-lookup-1 branch from b2d6709 to f5ceb17 Compare October 27, 2026 10:45
@dblock
dblock merged commit 4626c23 into ruby-grape:master Oct 27, 2026
25 checks passed
@dblock
dblock deleted the docs/representer-lookup-1 branch October 27, 2026 11:26
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.

Lookup Representers Dynamically

1 participant