Skip to content

Explode parameter is not correctly converted from OpenAPI 3.0 to 3.1 documents #377

Closed
@czechboy0

Description

@czechboy0
          The exploded query parameter style is not working in current version (0.3.4). It used to work properly in previous version (0.1.11)

example openapi.yaml

openapi: '3.0.3'
info:
  description:
  version: 2023.8.26
  title: example
  
servers:
  - url: https://example
  
paths:
  /example:
    get:
      operationId: example
      parameters:
      - name: LocationId
        required: false
        in: query
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string

It now yields:
https://example/example?LocationId=1&LocationId=2

But it is expected to be:
https://example/example?LocationId=1,2

Originally posted by @luomein in #258 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/generatorAffects: plugin, CLI, config file.kind/bugFeature doesn't work as expected.kind/supportAdopter support requests.status/blockedWaiting for another issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions