Skip to content
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

possible to enforce schema ? #410

Closed
c0ze opened this issue Jun 8, 2018 · 1 comment
Closed

possible to enforce schema ? #410

c0ze opened this issue Jun 8, 2018 · 1 comment

Comments

@c0ze
Copy link

c0ze commented Jun 8, 2018

I have a JSON field, and I want to make sure some keys are present.

Is it possible to have this schema enforced ? (when I serialize the field with this schema, if key doesnt exist, create with blank value)

@iainbeeston
Copy link
Contributor

I think the insert defaults option is what you want. Please look in the readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants