OpenAPI.NET.CSharpAnnotations
OpenAPI.NET.CSharpAnnotations copied to clipboard
Cannot parse complex url parameter
I have a url parameter like the following- <url>https://someserver.com/api/Products/{product?}?view={view} <url> But the swagger UI shows only- https://someserver.com/api/Products/{product
@arefinsami is product? your path parameter name? or is it product
The parameter name is just 'product' and it is optional.
@arefinsami if product is a path parameter per Open API specification it can not be optional, so it have to be documented like below for library to work
https://someserver.com/api/Products/{product}?view={view}
If you want it optional you would need to use it as query parameter