Nancy.Swagger
Nancy.Swagger copied to clipboard
SwaggerUI troubles with optional path variables
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
- describe a nancy url with optional path variables, i.e: api/v1/{requiredvar}/{optionalvar?}/
- open swagger document in petstore
- try a demo request
Specifications
- Version: nancy 2.2.51-alpha and nancy 2.0 cleanteastwood
- Platform: windows 10
- Subsystem: -netcore 2.1