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

recursive enum types will cause stack overflow after setting inline_subschemas #70

Closed
sanlee42 opened this issue Jan 19, 2021 · 3 comments
Milestone

Comments

@sanlee42
Copy link

No description provided.

@GREsau GREsau added this to the v0.8.1 milestone Mar 21, 2021
@GREsau
Copy link
Owner

GREsau commented Mar 21, 2021

This should be fixed by 1017506, which will be released in v0.8.1

@GREsau
Copy link
Owner

GREsau commented Mar 23, 2021

Fixed and published - https://crates.io/crates/schemars/0.8.1

@Igosuki
Copy link

Igosuki commented Sep 14, 2021

Sorry to bother, but it still occurs for me, see the following :

#[derive(Clone, Debug, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(tag = "type")]
#[serde(rename_all = "snake_case")]
pub enum Settings {
    A(OptionsA),
    B(OptionsB),
    C(Box<Settings>),
}
thread 'main' has overflowed its stack
fatal runtime error: stack overflow

Edit: using 0.8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants