effect-http
effect-http copied to clipboard
Array of query parameters
Single query parameter must be treated as single element array for appropriate schema.
export const GetManyUsersRequest = {
query: Schema.struct({
id: Schema.array(IdUserSchema)
}),
};
Return 400 for GET /users?id=123
But 200 for GET /users?id=123&id=456
I have tried Schema<string[], string>
for 123 -> [123]
but it breaks swagger UI - it renders string input instead of several inputs for array of strings