Discogs.Services.JSONSanitize (discogs_shuffle v0.2.0) View Source
Massages Discogs JSON properties into attribute maps ready for use by Ecto changesets.
Link to this section Summary
Functions
Extracts the relevant attributes from Discogs Release
JSON needed create an
Ecto changeset with valid properties and associations.
Link to this section Types
Specs
%Discogs.Release{}
changeset attributes
Specs
Discogs JSON API release payload properties
Link to this section Functions
Specs
get_release_attrs([release_json()]) :: {:ok, [release_attrs()]}
Extracts the relevant attributes from Discogs Release
JSON needed create an
Ecto changeset with valid properties and associations.
Includes support for associations:
Artist
Record
Note that this only returns the attributes - not the %Release{}
structs
themselves.