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

Limit for nesting Dict objects #61

Open
lokitorin opened this issue Aug 12, 2024 · 0 comments
Open

Limit for nesting Dict objects #61

lokitorin opened this issue Aug 12, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@lokitorin
Copy link

lokitorin commented Aug 12, 2024

Describe the bug:

It seems that nested models with field of type 'Dict' limits data generation:

изображение

Steps to reproduce the issue:

script to reproduce (run with streamlit run)

from typing import (Text, Dict)
from pydantic import BaseModel
import streamlit_pydantic as sp

class first(BaseModel):
    item: Dict[Text, int]

class second(BaseModel):
    item2: Dict[Text, first]

class third(BaseModel):
    item3: Dict[Text, second]

if __name__ == '__main__':

    data = sp.pydantic_input(key="test", model=third)
    pass

Technical details:

  • Host Machine OS: windows 10
  • Browser: any
@lokitorin lokitorin added the type:bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant