Skip to content

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