Skip to content

Swagger does not replace url path parameter with German Umlaut (äöü) in url #10367

@benno-mueller-saxess

Description

@benno-mueller-saxess

Q&A (please complete the following information)

  • OS: Linux
  • Browser: Chrome
  • Version: 132.0.6834.159
  • Method of installation: Maven
  • Swagger-UI version: 5.19.3
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

URL:

Example Swagger/OpenAPI definition:

openapi: 3.1.0
info:
  title: OpenAPI definition
  version: v0
servers:
- url: http://localhost:8080
  description: Generated server url
paths:
  /täst/{id}:
    get:
      tags:
      - example-controller
      operationId: testMitUmlaut
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        "200":
          description: OK
          content:
            '*/*':
              schema:
                type: string
components: {}

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Go to Swagger UI in Browser
  2. Click on 'Try it out'
  3. Enter path parameter (e.g. '42')
  4. Click on 'Execute'
  5. See url in execution info (curl, reqest url) -> http://localhost:8080/täst/{id}

Expected behavior

URL in execution info should be: http://localhost:8080/täst/42

Screenshots

Additional context or thoughts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions