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

Schema of child collection not generated #105

Closed
jthogsett opened this issue Apr 23, 2021 · 2 comments · Fixed by #218
Closed

Schema of child collection not generated #105

jthogsett opened this issue Apr 23, 2021 · 2 comments · Fixed by #218
Labels
good first issue Good for newcomers oca-issue For participants from OSS Contribution Academy v0.9.0 working

Comments

@jthogsett
Copy link

jthogsett commented Apr 23, 2021

When a parent class has a property that's a collection of a child, and the property name is the same as the class name of the child, the child class schema won't get generated. For example, public IEnumerable<MultiMedia> MultiMedia { get; set; }

Edit: To elaborate:
The property will get generated on the parent class
image
but in this example, there is no definition of the multiMedia schema. Here's the error in the swagger ui:
image

@justinyoo justinyoo added good first issue Good for newcomers triage labels Jun 20, 2021
@choipureum
Copy link
Contributor

Related to #167

@github-actions github-actions bot added the oca-issue For participants from OSS Contribution Academy label Aug 27, 2021
@dongshinyang
Copy link

Could I take this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers oca-issue For participants from OSS Contribution Academy v0.9.0 working
Projects
None yet
4 participants