node-red-node-swagger icon indicating copy to clipboard operation
node-red-node-swagger copied to clipboard

How can you configure enum parameters in the query?

Open markusfrank78 opened this issue 4 years ago • 0 comments

In the Swagger-YAML you can configure call parameters as ENUM (selection list). How can this be transferred to the parameterization in the NODE-RED Swagger documentation?

As an example in YAML

  /pet/findByStatus:
    get:
      tags:
      - "pet"
      summary: "Finds Pets by status"
      description: "Multiple status values can be provided with comma separated strings"
      operationId: "findPetsByStatus"
      produces:
      - "application/xml"
      - "application/json"
      parameters:
      - name: "status"
        in: "query"
        description: "Status values that need to be considered for filter"
        required: true
        type: "array"
        items:
          type: "string"
          enum:
          - "available"
          - "pending"
          - "sold"
          default: "available"

image

In NODE-RED there is no selection for ENUM or default settings, right?

image

markusfrank78 avatar Sep 21 '21 18:09 markusfrank78