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

SwaggerUI troubles with optional path variables #162

Open
DGuidi opened this issue Sep 14, 2018 · 0 comments
Open

SwaggerUI troubles with optional path variables #162

DGuidi opened this issue Sep 14, 2018 · 0 comments

Comments

@DGuidi
Copy link

DGuidi commented Sep 14, 2018

Expected Behavior

swagger definition can be tested directly from swaggerui

Actual Behavior

http url is not valid, as seen also in curl example provided from swaggerui
curl -X GET "https://localhost:9080/v1/gammanext/{verticale?%7D%2FAgenteMG%2F1=" -H "accept: application/json"

Steps to Reproduce the Problem

  1. describe a nancy url with optional path variables, i.e: api/v1/{requiredvar}/{optionalvar?}/
  2. open swagger document in petstore
  3. try a demo request

Specifications

  • Version: nancy 2.2.51-alpha and nancy 2.0 cleanteastwood
  • Platform: windows 10
  • Subsystem: -netcore 2.1
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