Support overriding field name
Exposes the Field.name parameter so it can be different from the attribute name in the parent model.
Add SelfModel class that can be used as Field.type to allow self-referencing models
Field.type is then set to the parent model class during Model.__init__
Add JSONField class that can represent any value that can be encoded/decoded by the python json module out of the box.
Allows a field to contain any valid JSON value, but does no mapping to classes.
Add stable apiextensions v1 CRD model
Provides a complete mapping of apiextensions.k8s.io/v1/customresourcedefinitions
Field.name
parameter so it can be different from the attribute name in the parent model.SelfModel
class that can be used asField.type
to allow self-referencing models Field.type is then set to the parent model class duringModel.__init__
JSONField
class that can represent any value that can be encoded/decoded by the python json module out of the box. Allows a field to contain any valid JSON value, but does no mapping to classes.apiextensions.k8s.io/v1/customresourcedefinitions
Todo:
~Write tests~ ✔️