JSON schema for relations