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

Stack overflow when generating schema for structure references Self #171

Closed
glebpom opened this issue Jan 18, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@glebpom
Copy link
Contributor

glebpom commented Jan 18, 2022

Expected Behavior

The reference to a structure name is generated

Actual Behavior

Application fails with "stack overflow" in runtime

Steps to Reproduce the Problem

#[derive(NewType)]
#[oai(from_parameter = false, to_header = false, from_multipart = false)]
pub struct Schema(Vec<SchemaItem>);

#[derive(Object)]
#[oai(rename_all = "snake_case")]
pub struct SchemaItem {
    pub properties: Option<Schema>,
}

Specifications

  • Version: 1.2.36
  • Platform: MacOS
@glebpom glebpom added the bug Something isn't working label Jan 18, 2022
@sunli829
Copy link
Collaborator

Fixed in v1.2.38 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants