Enforce keys for all structs
This commit is contained in:
@@ -4,6 +4,7 @@ defmodule MusicBrainz.Config do
|
||||
user_agent: String.t()
|
||||
}
|
||||
|
||||
@enforce_keys [:api, :user_agent]
|
||||
defstruct api: MusicBrainz.APIImpl,
|
||||
user_agent: "change me"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
defmodule MusicBrainz.ReleaseGroup do
|
||||
@enforce_keys [:id, :type, :title, :artists, :release]
|
||||
defstruct [:id, :type, :title, :artists, :release]
|
||||
|
||||
def from_api_response(rg) do
|
||||
|
||||
Reference in New Issue
Block a user