There is a path in api with an arbitrary number of optional parameters of approximately this kind:
/orders/123/get-payment-link/provider?customerId=123&amount=2000&custom1=custom1&custom2=custom2...
The api description looks something like this:
paths:
/orders/{orderId}/get-payment-link/{providerName}:
get:
operationId: order_get_payment_link
tags:
- /orders
parameters:
...
- name: customerId
in: query
required: true
example: 123
schema:
type: string
- name: amount
in: query
required: true
example: 2000
schema:
type: string
...
I can’t understand how can I describe arbitrary optional parameters of type custom, which can be any number and which can be called anything?