Skip to content

Empty and blank query parameter examples are parsed to null #1375

@mih-kopylov

Description

@mih-kopylov

Empty and blank query parameter examples are parsed to null, while it's expected them to be parsed to a valid empty or blank string respectively.

openapi: 3.0.2
info:
  title: Example references
  version: 1.0.0
paths:
  /foo:
    get:
      parameters:
        - name: paramName
          in: query
          example: " "
      responses:
        '200':
          description: success

result.getOpenAPI().getPaths().get("/foo").getGet().getParameters().get(0).getExample() returns null while I expect it to return " "

The same is with an empty string.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions