Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type Object schould produce unknown or any. #1665

Open
ikilinc50 opened this issue Oct 17, 2024 · 1 comment
Open

type Object schould produce unknown or any. #1665

ikilinc50 opened this issue Oct 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ikilinc50
Copy link

What are the steps to reproduce this issue?

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.

@melloware
Copy link
Collaborator

PR is welcome.

@melloware melloware added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants