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

[IDP-1271] Fallback on method name for operationId #3

Merged

Conversation

PrincessMadMath
Copy link
Contributor

@PrincessMadMath PrincessMadMath commented Apr 24, 2024

Description of changes

  • Introduce entry points to configure the library
  • Add behevior to display OperationId in SwaggerUI
  • Add optional configuration to fallback on using MethodName if no OperationId is available

Breaking changes

No, and the library is not published anywhere yet.

Additional checks

  • Updated the documentation of the project to reflect the changes
  • Added new tests that cover the code changes

@PrincessMadMath PrincessMadMath requested a review from a team as a code owner April 24, 2024 18:08
heqianwang
heqianwang previously approved these changes Apr 24, 2024
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/Directory.Build.props Outdated Show resolved Hide resolved
@heqianwang heqianwang changed the title [IDP-1217] Fallback on method name for operation [IDP-1271] Fallback on method name for operation Apr 25, 2024
@heqianwang heqianwang changed the title [IDP-1271] Fallback on method name for operation [IDP-1271] Fallback on method name for operationId Apr 25, 2024
heqianwang
heqianwang previously approved these changes Apr 25, 2024
@heqianwang heqianwang merged commit 57590a3 into main Apr 26, 2024
3 checks passed
public void ConfigureServices(IServiceCollection services)
{
// [...]
services.AddOpenApi()
Copy link
Contributor

Choose a reason for hiding this comment

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

You forgot to update to readme after renaming the method in the code

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.

4 participants