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

feat: Add support for displaying operationId in the sidebar #1927

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

Rycochet
Copy link
Contributor

What/Why/How?

As with most companies that use OpenAPI we make use of the operationId to actually know what code to call through auto-generated code, which made this library unusable for generating documentation despite all the other benefits.

Simply added an option to the enum arguments to allow it to display the operationId - which is marked as optional in the spec, so provided a fallback to the path (the Summary is not useful in technical documentation), and added to the documentation.

No testing has been added for this - as I couldn't find any tests for the already existing functionality - the already existing tests have enough problems that my best comment is "this didn't break anything that wasn't already broken".

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@Rycochet Rycochet changed the title feat: Add support for displaying id in the sidebar feat: Add support for displaying operationId in the sidebar Mar 11, 2022
@RomanHotsiy RomanHotsiy added this to the v2.0 milestone Mar 22, 2022
@Oprysk Oprysk mentioned this pull request Mar 23, 2022
3 tasks
@Oprysk
Copy link
Member

Oprysk commented Mar 23, 2022

@Rycochet Thanks for your contribution!
This is a good idea but seems like it's not fully worked. So I've pushed one more commit to your forked repo to make it work properly 🙌 .

@Oprysk Oprysk merged commit 09786f2 into Redocly:master Mar 23, 2022
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.

None yet

4 participants