Skip to content

Special characters not allowed on Request Param of type String #6502

@besafx

Description

@besafx

#5095 # Q&A

  • OS: Ubuntu
  • Browser: chrome
  • Version: 22
  • Method of installation: Java
  • Swagger-UI version: 3.10.0
  • Swagger/OpenAPI version: Swagger 2.0, OpenAPI 3.0

I just need to be able to pass special characters like (: < >&&..) on Query param for request,
Like for example following implementation for @paramter:
@Parameter( in = ParameterIn.QUERY, description = "Enter search query.", name = "search", schema = @Schema( type = "string", pattern = "name:value", defaultValue = "name:value" ) )

But when i make request from UI, this pattren (name:value) converted into (name%3Avalue) and this will not give me correct response.

So is there any way to force Swagger to accept these special symbols on URLs ?

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