-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Generated attribute takes first type on types list. #1425
Comments
Maybe related to #676 ? |
Yes, it's directly related and the answer will be the same |
Often people use union types like:
|
Logic of taking first type should be changed, as a user can pass |
Consider the following jsonSchema:
In this case generated attribute
foo
will have as typeBoolean
:I noticed that, if type is not specified in jsonSchema, foo takes the type
Object
:Result:
There's a way of having the last result (without changing the jsonSchema) when a list of types is passed ?
The text was updated successfully, but these errors were encountered: