Added schema for related fields and sub resource