You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
Any idea what Im doing wrong?
The text was updated successfully, but these errors were encountered:
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:
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
Any idea what Im doing wrong?
The text was updated successfully, but these errors were encountered: