Avoiding duplicate field names and adding doc info for shared and public resources