orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
PropertyDto:
type: object
properties:
value:
type: object
description: value can be any value. (strıng, number... or a object)
What happens?
Orval generates for "value" a record like type {[key: string]: value }
What were you expecting to happen?
because of generic nature of object, it should produce something that is compatible to any.
For me the perfect thing where to convert it into "unknown", So i have to check the real type.
What are the steps to reproduce this issue?
What happens?
Orval generates for "value" a record like type {[key: string]: value }
What were you expecting to happen?
because of generic nature of object, it should produce something that is compatible to any. For me the perfect thing where to convert it into "unknown", So i have to check the real type.