hbagdi/go-unsplash

Errors with ListOpt{} when not specifying all values

Closed this issue · 2 comments

When using ListOpt to populate List Options, you need to specify all values for the options rather than each as you need them. For instance, I have to specify Page, PerPage and OrderBy if I want it to work, otherwise it fails with opt provided is not valid:

	photos, resp, err := u.Photos.Curated(&unsplash.ListOpt{
		OrderBy: unsplash.Popular,
	})

Will create an error

@klauern yes, that doesn't seem right.
I'll push a fix for this soon.

@klauern Reopen this if commit 4ead243 doesn't fix the problem