microsoft / microsoft/typespec

Add query paramerter as list parameter test

Open
#9,230 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
lib:http-specs
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

I need a new test in "packages/http-specs/specs/parameters/query" to test what happen if the parameter is a list:
```
@query
listParameter: string[];
```

It's expected that the list is serialized as CSV. The scenario should ask for the person calling this test, to pass an array like {"a","b","c"], and the http part should expect to receive "a,b,c" for the query parameter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.