Skip to content

SwaggerUI troubles with optional path variables #162

@DGuidi

Description

@DGuidi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions