* #639 Create JSON schemas for all rule events * Use graphql middleware. * Guard it. * Just some naming. * Additional test for graphql to ensure compatibility.