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
then each of my models just depend on that module and define their own schemas.
BaseModel.createSubcalss({schema: ...
});
trying to use extensions/jsonSchema causes a lot of friction because it takes a schema and returns a Model. i would have to do something like using AMD map config to map my own model as dmodel/Model into dmodel/extensions/jsonSchema or use model.prototype.schema as the schema to pass to another Model.
it would be easier if the extension took a json-schema and returned the dmodel schema so that it is used like so:
Model.createSubclass({schema: jsonSchema(...)});
The text was updated successfully, but these errors were encountered:
it's hard to use extensions/jsonSchema with a custom base Model. e.g. i have a base Model for all my models which is something like this:
then each of my models just depend on that module and define their own schemas.
trying to use extensions/jsonSchema causes a lot of friction because it takes a schema and returns a Model. i would have to do something like using AMD map config to map my own model as dmodel/Model into dmodel/extensions/jsonSchema or use
model.prototype.schema
as the schema to pass to another Model.it would be easier if the extension took a json-schema and returned the dmodel schema so that it is used like so:
The text was updated successfully, but these errors were encountered: