Dynamically create proto plus schema classes #350
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
(Filing a feature request here as instructed by Anthonios)
I would like to use proto-plus to dynamically generate a proto plus schema.
Currently, a proto-plus schema class must have all its fields statically defined at the time of class definition (since the metaclass new method compiles all the fields). We would like to be able to create a schema with field names that are not known until runtime (retrieving field names from a variable). The dynamic creation should also work for nested protos as well.
The text was updated successfully, but these errors were encountered: