Nancy.Swagger icon indicating copy to clipboard operation
Nancy.Swagger copied to clipboard

SwaggerUI troubles with optional path variables

Open DGuidi opened this issue 7 years ago • 0 comments

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

DGuidi avatar Sep 14 '18 10:09 DGuidi