Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Cannot parse complex url parameter #225

Open
arefinsami opened this issue Oct 5, 2019 · 3 comments
Open

Cannot parse complex url parameter #225

arefinsami opened this issue Oct 5, 2019 · 3 comments

Comments

@arefinsami
Copy link

arefinsami commented Oct 5, 2019

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

@Shwetap05
Copy link
Member

@arefinsami is product? your path parameter name? or is it product

@arefinsami
Copy link
Author

The parameter name is just 'product' and it is optional.

@Shwetap05
Copy link
Member

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants