This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
Schema builder skipping nested typing types when generating object types #18
Labels
bug
Something isn't working
Expected Behavior
I would expect the built schema of this config class...
to return
Current Behavior
Currently the generated schema comes out looking like this...
Possible Solution
This is due to the fact that
schema_builder@_build
is not handling typing types any differently than bulitin types. So when it tries to build the nested typing type (typing.List[str]
) it is instead (somewhat silently) failing and returning an empty schema ({}
)Solution would be to have a special handler in
_build
which deals with nested typings. This may also require some changes in the other_build_{type}_type
handlers with out modifiers are built (they currently expect config vars if the given type is not a builtin).Steps to Reproduce (for bugs)
Your Environment
❤️ Thank you!
The text was updated successfully, but these errors were encountered: