Specify which resource fields are mandatory when using the resource_fields approach

I noticed that when resource_fields is used (instead of deducing fields from __init__) then there's no way to specify which is required. This patch seems to work well.