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

Omit endpoint parameters marked with x-hidden #56

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

brotheroftux
Copy link
Contributor

Main changes:

  • Endpoint parameters marked with x-hidden are now filtered out before rendering
  • Parameter groups (query, path, cookie, etc.) are now omitted if all of their respective params are marked as hidden

Additional comments:

  • We did not previously have tests for hidden props on object schemas — I added a test suite. I also believe it is possible to have an empty table rendered for a component if all of its properties are marked as hidden, but I didn't fix this behaviour yet.

@brotheroftux brotheroftux requested a review from 3y3 June 17, 2024 18:04
@brotheroftux brotheroftux force-pushed the DOCSTOOLS-2730 branch 3 times, most recently from 9ade0d3 to 2146df9 Compare June 21, 2024 20:55
@brotheroftux brotheroftux merged commit 6208987 into master Jun 27, 2024
2 checks passed
@brotheroftux brotheroftux deleted the DOCSTOOLS-2730 branch June 27, 2024 12:52
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