Skip to content
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

Added support for hidden option for documentation #38

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

vitoravelino
Copy link
Contributor

Currently there's no way of avoding the exposure of an entity attribute.
Sometimes there are internal and conditional attributes that are not
important to be known in the documentation to whoever is consuming that
entity.

In this case, we are simply checking if there's a hidden attribute in
the documentation options and we skip it when parsing the entity
attributes.

Signed-off-by: Vítor Avelino vavelino@suse.com

@vitoravelino vitoravelino force-pushed the hidden-doc-option branch 3 times, most recently from 8ec38e8 to b0beb5c Compare January 14, 2019 12:16
Currently there's no way of avoding the exposure of an entity attribute.
Sometimes there are internal and conditional attributes that are not
important to be known in the documentation to whoever is consuming that
entity.

In this case, we are simply checking if there's a `hidden` attribute in
the `documentation` options and we skip it when parsing the entity
attributes.

Signed-off-by: Vítor Avelino <vavelino@suse.com>
@LeFnord
Copy link
Member

LeFnord commented Jan 15, 2019

thanks @vitoravelino … looks good to me

@kzaitsev kzaitsev merged commit 7d9c18b into ruby-grape:master Jan 15, 2019
@vitoravelino vitoravelino deleted the hidden-doc-option branch January 15, 2019 16:49
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.

3 participants