Skip to content

Path parameters don't support arrays and maps as input #2318

@darrelmiller

Description

@darrelmiller

This OpenAPI fragment

  /v2/properties/{properties}:
    get:
      operationId: v2_getSelectedProperties
      parameters:
        - name: properties
          in: path
          required: true
          schema:
            type: array
            items:
              type: string

generated the following indexer

public WithPropertiesItemRequestBuilder this[string position] { get {
            var urlTplParams = new Dictionary<string, object>(PathParameters);
            if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("properties", position);
            return new WithPropertiesItemRequestBuilder(urlTplParams, RequestAdapter);
        } }

The type of the indexer parameter should be string[] and not string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    generatorIssues or improvements relater to generation capabilities.type:bugA broken experience

    Type

    No type

    Projects

    Status

    New📃

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions