Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your schema can simply say it is illegal for an object to have both of those tags once. I'm not sure how you'd do any better with a unityped system like JSON. Unless you're advocating using something other than JSON? What do you mean by "do it semantically"? What other alternative is there besides a field for a type tag?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: