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
It would be useful to be able to add metadata to the Ottoman models so that they can be read by introspection and allow for metadata programming. For example; If I create a model and then add 'hint' and 'required' properties:
const test = ottoman.model("Test", {
foo: {type:'string', hint:'This is a required foo object', required:true}
})
Introspecting the model I get the following fields
It would be useful to be able to add metadata to the Ottoman models so that they can be read by introspection and allow for metadata programming. For example; If I create a model and then add 'hint' and 'required' properties:
Introspecting the model I get the following fields
The extra properties of foo are removed.
Cheers,
Fabrice
The text was updated successfully, but these errors were encountered: