If using something as simple as an array, oats' generated code results in any.
For example, the following swagger generates this interface:
export interface GetStuffParams {
query?: {
stuffFilter?: string
stuffFilterComplex?: any
}
}
openapi: "3.0.0"
info:
title: Stuff service
version: 0.0.0
servers:
- url: /api/v2
paths:
/stuff:
get:
operationId: createStuff
parameters:
- $ref: "#/components/parameters/StuffFilter"
- $ref: "#/components/parameters/StuffFilterComplex"
responses:
'204':
$ref: "#/components/responses/NoContent"
components:
parameters:
StuffFilter:
in: query
name: stuffFilter
required: false
description: stuff to return
schema:
type: string
StuffFilterComplex:
in: query
name: stuffFilterComplex
required: false
description: stuff to return
schema:
type: array
items:
type: string
responses:
NoContent:
description: No content
If using something as simple as an array, oats' generated code results in
any.For example, the following swagger generates this interface: