Skip to content

Document optional Swagger response schemas - #59

Merged
dblock merged 1 commit into
ruby-grape:masterfrom
dblock:docs/swagger-integration-42
Oct 27, 2026
Merged

dblock merged 1 commit into
ruby-grape:masterfrom
dblock:docs/swagger-integration-42

Conversation

@dblock

@dblock dblock commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Changes

Document optional grape-swagger integration using documentation-only Entity response models while keeping Rabl rendering. Show explicit parser loading and a nested schema matching the template root envelope. Explain that Rabl templates, layouts, partials, and conditional fields do not automatically become static Swagger schemas. No runtime or dependency changes.

Validation

Executed the README configuration with a database-free User fixture and the local grape-rabl implementation. Verified both HTTP responses, the Swagger 2.0 endpoint response reference, the nested root-envelope model reference, and integer/string attribute types against the actual Rabl output.

Verified with Grape 4.0.1, grape-swagger 2.2.0, and grape-swagger-entity 0.7.1. Hosted CI and Danger pass.

Closes #42.

Created by Copilot, an AI, on behalf of @dblock.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock force-pushed the docs/swagger-integration-42 branch from 4959fa7 to 863e385 Compare October 27, 2026 02:39
@coveralls

coveralls commented Oct 27, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — dblock:docs/swagger-integration-42 into ruby-grape:master

Show documentation-only Entity schemas alongside Rabl rendering, including the response root envelope, parser loading, and the normal JSON fallback for Swagger endpoints.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the docs/swagger-integration-42 branch from 863e385 to 0e2a46e Compare October 27, 2026 09:59
@dblock
dblock merged commit 572b8ed into ruby-grape:master Oct 27, 2026
21 checks passed
@dblock
dblock deleted the docs/swagger-integration-42 branch October 27, 2026 10:01
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.

how to use grape-rabl with swagger?

2 participants