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

Authorize form does not replace URL variables #4740

Closed
shockey opened this issue Jul 17, 2018 · 1 comment · Fixed by #5913
Closed

Authorize form does not replace URL variables #4740

shockey opened this issue Jul 17, 2018 · 1 comment · Fixed by #5913

Comments

@shockey
Copy link
Contributor

shockey commented Jul 17, 2018

From @chrif on July 16, 2018 19:49

Q&A (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • Version: 67
  • Method of installation: docker hub
  • Swagger-Editor version: 3.6.3
  • Swagger/OpenAPI version: 3.0.1

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.1
info:
  version: 1.0.0
  title: Swagger Petstore
paths:
  /pets:
    get:
      summary: List all pets
      responses:
        '200':
          description: A paged array of pets
servers:
  - url: 'http://{client}.domain.com/api'
    variables:
      client:
        default: acme
components:
  securitySchemes:
    login:
      type: oauth2
      flows:
        password:
          tokenUrl: oauth/v2/token

Describe the bug you're encountering

Authorize form does not replace URL variables:
image

It instead makes a call to:
http://%7Bclient%7D.domain.com/api

image

Copied from original issue: swagger-api/swagger-editor#1837

@pseudo-su
Copy link
Contributor

pseudo-su commented Apr 4, 2020

FYI I have an open PR that resolves this issue for me #5913

Hopefully it can get some attention and have someone look at it

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

Successfully merging a pull request may close this issue.

2 participants