-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
OpenAPI 3.1 - SchemaResolution.INLINE not working with Array Type objects #4771
Comments
@frantuma Seeing that you worked on SchemaResolution PRs, do you think this change would make sense for SchemaResolution.INLINE? I could make a PR Thanks! |
As mentioned in wiki #4784 also introduces the option to set an ENV or System property Closing ticket, please reopen if you're still experiencing issues |
Thanks @frantuma, I appreciate this. Could
|
@YousefHaggy the flag has been added as quick solution for such edge use case, what I meant with That said, a PR to allow the same outcome currently obtained with the system property by updating ModelResolver is welcome! |
Having an issue with
ModelResolver
when resolving Array typesSay I have CustomObject.class, trying to resolve the schema of it's Array type class results in a Array schema with a reference
Resulting schema component:
SchemaResolution.INLINE doesn't inline these types. When I resolve a schema with that option, any properties that are array types on the class, ex: List, CustomObject[], get converted to Array reference schemas.
Is there anyways to generate fully inline Schemas when there are Array types? For SchemaResolution.INLINE, I would expect my above example to resolve as:
The text was updated successfully, but these errors were encountered: