jhthorsen / jhthorsen/openapi-client

OpenAPI::Client - how to pass additionalProperties in OpenAPI GET query request?

Open
#34 2 comments 0 reactions 1 assignee Claimed by @nige123 View on GitHub
enhancement help wanted openapiv3
Dominant language
Perl
Stars
12
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I'm trying to pass filter variables in a GET request to an OpenAPI route with this specification:

```
- in: query
name: params
schema:
type: object
additionalProperties:
type: string
style: form
explode: true
```
I've tried various different ways of passing the data at request time:
```

my $client = OpenAPI::Client->new(...);

my $tx = $client->findApps({
params => { 'id' => '1' }
});

my $tx = $client->findApps({ 'id' => '1' });

```
What is the correct way to do this?

I'm currently getting this warning/error:

Use of uninitialized value $name in exists at /usr/local/share/perl/5.26.1/OpenAPI/Client.pm line 204

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.