Implement `isAttributeRequired` for nested documents
Client validation for nested documents