-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat request: Schema.prototype.meta(key, value)
#20
Comments
|
|
None of the ones you mentioned should be meta properties. You can request these features in separate issues. |
Even if they are meta properties, I don't think this should be freely specified by the user. All constraints should be given by methods on the prototype chain. |
As meta field designed to be a dict with no type limitations, It should allow users store whatever they want, JSON-safe of course, and simply transmit the schema and what they need between backend and frontend. It provides a possibility. Otherwise, if an extra field is really needed in some special case, users might use something like |
You have already given a workaround at the beginning of this issue, so the requested API is not necessary. Instead, the requested API increases vulnerability both in typings and runtime. If you just need |
seems much better than
The text was updated successfully, but these errors were encountered: