You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the root_name in the generation config, sub types of the root still get the original root name as their prefix. I would expect the prefixes of the sub types to match the provided root_name.
When setting the
root_name
in the generation config, sub types of the root still get the original root name as their prefix. I would expect the prefixes of the sub types to match the providedroot_name
.Example:
If we set the
root_name
toCustomRootName
the generated code looks like this:I was able to hack in a fix by adding this:
Right before calling
add_type
on this line:jsonschema-gentypes/jsonschema_gentypes/cli.py
Line 322 in d8a2295
Then the resulting code looks as expected:
The text was updated successfully, but these errors were encountered: