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

Model name is re-added to the Parameter if using AddVersionedApiExplorer #1431

Open
bynho opened this issue May 25, 2022 · 0 comments
Open

Comments

@bynho
Copy link

bynho commented May 25, 2022

Swashbuckle.Core version 5.6.0

When hooking up my API with Swashbuckle/Swagger I got it all working fine up until I started adding code to handle multiple versions.

To validate my issue, I edited the ApiVersioning.SwaggerWebApiSample project.

I have added the following:

image

Notice how I am passing [FromUri (Name="")] and and OrderRequest model.

If I try to use this with a single api version and do not use AddVersionedApiExplorer in the swagger config the parameters are shown as I expect them to (without the model. prefix).

However, as soon as I add AddVersionedApiExplorer it seems to ignore the FromUri(Name="") and shows as model.property

image

Any idea what Im doing wrong?

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

No branches or pull requests

1 participant