Skip to content

Clarify README for overriding an Entity's documented name #961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hollabaq86
Copy link

This is a documentation update only. Please let me know if I should update the CHANGELOG, too?

Anyhoo, it took me a decent amount of time to figure out how grape-swagger parses the name for an Entity when generating response models, and specifically how to override it with my own value.

This PR adds a specific example of how to do this with an example of what the generated swagger JSON would look like.

Thanks for your time and work maintaining this gem!

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dblock
Copy link
Member

dblock commented Aug 19, 2025

We have failing tests, maybe you can help fix CI (in a separate PR)? I'd rather not merge things in the meantime.

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