Authress-Engineering / openapi-explorer

OpenAPI Web component to generate a UI from the spec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retain populated parameters when executing request that includes array parameters

nneul opened this issue · comments

Currently in the UI, when you execute a request that contains array parameters, the populated parameters are lost:

image

image

Would be nice if this retained them. It does NOT appear to lose the parameter values if it is a simple string field.

What do you mean by "lost", do you mean "consumed"? As in, after execution the populated values are no longer present?

Interesting, that is definitely a bug, can you include a minimal spec that exhibits this problem so we can solve it right away?

Thanks!

Example suitable to demo:

openapi: 3.0.0
info:
  description: Demo
paths:
  /api/test:
    get:
      parameters:
        - name: code
          description: 'demonstrate multiple parameters'
          schema:
            type: array
            items:
              type: string
            minItems: 1
          in: query
          style: form
          explode: true
          required: true
      produces:
        - application/json

Thanks for the minimal repro, I've pushed out a new version which is currently building and should be available shortly which will fix this problem. Please do let us know if for any reason this isn't working as you would expect.

=> 1.0.571