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

feat(GoodConf): generate TOML configuration for complex types #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mion00
Copy link

@mion00 mion00 commented Mar 4, 2023

Description

  • Refactor generate_toml() to recursively traverse the various input fields, generating TOML list and tables to contain nested classes and list of other elements, until a base type is found.
  • Refactor initial_for_field() to invoke dict() method on BaseModel classes, or to handle nested lists
  • Add tests containing nested config classes and lists

Fixes #32

In function generate_toml recursively traverse the various input fields, generating TOML list and tables to contain nested classes and list of other elements, until a base type is found.

lincolnloop#32
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

Successfully merging this pull request may close these issues.

Generate config with subclasses
1 participant