Skip to content

Conversation

@AndreaCuneo
Copy link
Contributor

fix(ApiExplorer): SubstitutedType have invalid property setter

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Description

The PropertySetter of the SubstitutedType properties have 0 parameters: they had the same signature of the Getter.

Fixes #1104

@AndreaCuneo
Copy link
Contributor Author

@dotnet-policy-service agree

@AndreaCuneo AndreaCuneo force-pushed the bugfix/SubstituteTypeInvalidPropertySetter branch from 27ac7c3 to 41f8cda Compare August 28, 2024 09:52
@AndreaCuneo
Copy link
Contributor Author

@commonsensesoftware can you please take a look. is a 1 line change plus tests.

@spaasis
Copy link

spaasis commented Nov 12, 2025

This works! I implemented the fix and published a new package version to our internal feeds, and now we can upgrade our odata projects to at least Swashbuckle 9. @AndreaCuneo thanks a million! Hopefully this gets merged to mainline soon

Copy link
Collaborator

@commonsensesoftware commonsensesoftware left a comment

Choose a reason for hiding this comment

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

Minor feedback, but otherwise looks good.

@AndreaCuneo AndreaCuneo force-pushed the bugfix/SubstituteTypeInvalidPropertySetter branch from 41f8cda to 6805c37 Compare November 16, 2025 09:45
The PropertySetter of the SubstitutedType have 0 parameters: they had the same signature of the Getter. resolves: dotnet#1104
@AndreaCuneo AndreaCuneo force-pushed the bugfix/SubstituteTypeInvalidPropertySetter branch from 6805c37 to 1ae3d96 Compare November 16, 2025 09:47
@commonsensesoftware commonsensesoftware merged commit 5ba0e73 into dotnet:main Nov 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants