Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mulmboy
· 3y ago · 0 comments
How do you enforce the JSON schema?
Comments
[–]
HelloNurse
3y ago
We are talking about the
internal
database of some application: its schema is something that should be designed well, not enforced defensively like a schema for validating undependable inputs.
[–]
breeze1990
3y ago
define schema with data class and you have tools like protobuf/thrift. And I find it really unnecessary to map every attribute to a SQL column.
[–]
tenken
3y ago
In the application layer