Function TEMPORARY__disableModelSchemaExtensionMechanism
NOTE: this is a workaround for serializr to avoid the magic extension mechanism provided
by createModelSchema, where depending on the order schemas are defined, if the schema of the
super class is specified first, when we serialize subclasses, we would get fields of the order
of fields from the super classes first, followed by fields from the subclasses, not the order
specified in the subclass's schema.
NOTE: this is a workaround for
serializr
to avoid the magic extension mechanism provided bycreateModelSchema
, where depending on the order schemas are defined, if the schema of the super class is specified first, when we serialize subclasses, we would get fields of the order of fields from the super classes first, followed by fields from the subclasses, not the order specified in the subclass's schema.See https://github.com/mobxjs/serializr/issues/179