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

Can't inline struct field with Vec<Foo> #189

Closed
kellpossible opened this issue Jun 26, 2022 · 0 comments · Fixed by #190
Closed

Can't inline struct field with Vec<Foo> #189

kellpossible opened this issue Jun 26, 2022 · 0 comments · Fixed by #190

Comments

@kellpossible
Copy link
Contributor

Inlining a struct field like:

struct Bar {
    #[component(inline)]
    foo: Vec<Foo>
}

results in the following error:

no method named `to_array_builder` found for enum `utoipa::openapi::Component` in the current scope
kellpossible added a commit to kellpossible/utoipa that referenced this issue Jun 26, 2022
@juhaku juhaku moved this to In Progress in utoipa kanban Jun 30, 2022
Repository owner moved this from In Progress to Done in utoipa kanban Jun 30, 2022
juhaku pushed a commit that referenced this issue Jun 30, 2022
Fix cannot inline struct field with `Vec<...>` types #189 

This work was sponsored by [Arctoris](https://www.arctoris.com/).
@juhaku juhaku moved this from Done to Released in utoipa kanban Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

1 participant