goodconf icon indicating copy to clipboard operation
goodconf copied to clipboard

feat(GoodConf): generate TOML configuration for complex types

Open mion00 opened this issue 1 year ago • 0 comments

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

mion00 avatar Mar 04 '23 15:03 mion00