Skip to content

Commit

Permalink
Changed 'type' attribute to 'mimetype'
Browse files Browse the repository at this point in the history
Following the JSON:API spec:
'...a resource can not have an attribute ... named type...'

https://jsonapi.org/format/#document-resource-object-fields
  • Loading branch information
govynnus committed Jul 18, 2020
1 parent cfb58fa commit c4589e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Tracks **MAY** have these attributes:

These optional attributes reflect audio metadata:

* ``type``, string: The MIME type of the associated audio file.
* ``mimetype``, string: The MIME type of the associated audio file.
* ``duration``, float: The (approximate) length of the audio in seconds.
* ``framerate``, integer: The number of frames per second in the audio.
* ``framecount``, integer: The total number of frames in the audio.
Expand Down Expand Up @@ -643,7 +643,7 @@ These fields on image resource objects are optional:

* ``role``, string: A description of the image's purpose: "cover" for primary
album art, etc.
* ``type``, string: The MIME type of the image.
* ``mimetype``, string: The MIME type of the image.
* ``width``, integer: The image's width in pixels.
* ``height``, integer: The image's height in pixels.
* ``size``, integer: The size of the image data in bytes.

0 comments on commit c4589e1

Please sign in to comment.