Set required fields for resource. Close #40