node-red / node-red-node-swagger

A set of tools for generating Swagger api documentation based on the HTTP nodes deployed in a flow
Apache License 2.0
62 stars 46 forks source link

How can you configure enum parameters in the query? #81

Open markusfrank78 opened 2 years ago

markusfrank78 commented 2 years ago

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