Skip to content

Conversation

@danjohnso
Copy link

Thought I would take a crack at updating packages for compatibility with Swashbuckle.AspNetCore.SwaggerGen 8.0.0 and getting rid of some legacy package dependencies. There are two changes here I am not sure how you feel about and may not be a usable solution to you, but I wanted to get a discussion going around them.

Maybe this PR doesn't work for what you want here, but I thought it could be a good starting point for you in resolving those two open issues.

…erGen 8 and getting rid of some legacy package dependencies. Looks like Should take care of issues micro-elements#158 and micro-elements#160.  One issue is the newer versions of Swashbuckle.AspNetCore.SwaggerGen made SwaggerMiddleware internal (see domaindrivendev/Swashbuckle.AspNetCore#2805).  This breaks the scoped middleware, not sure if this is still needed as I have not used in a project
@christianerbsmehl
Copy link

Hey @petriashev can you please take a look at this PR?

<PackageReference Include="MicroElements.Swashbuckle.FluentValidation" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />

Choose a reason for hiding this comment

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

This package is no longer maintained. See:
https://www.nuget.org/packages/FluentValidation.AspNetCore/

Copy link
Author

Choose a reason for hiding this comment

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

Yeah I have a couple other changes i would make but no response from the owner so not worth putting more effort forward in here

Choose a reason for hiding this comment

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

I get it. It has happened to me so many times that I just don't do OSS contributions.

@danjohnso
Copy link
Author

danjohnso commented May 21, 2025

Adding one more update to see if we can get any discussion from @petriashev. Otherwise I will probably end up forking this and publishing a trimmed down version without some of the features I don't use in projects. Just to try, I added @vchirikov workaround for the scoped middleware becoming internal. Not sure I like forcing access into their API surface like that, but I don't see any other options.

The readme and other supporting docs will need updates if we can move this forward, but not going to spend the time updating here if the author is done with maintenance.

I do want to add a thank you to Alexey for this project, it has been useful for both work and personal projects in the last couple years. I understand the time cost of OSS doesn't lend to these sorts of packages being maintained forever, but grateful for your work in filling the niche that was needed at the time.

@avgalex avgalex merged commit 57cf94f into micro-elements:master Sep 1, 2025
0 of 2 checks passed
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