Skip to content

Commit 97b5d1e

Browse files
committed
minor tweak to usage README.
1 parent 9374956 commit 97b5d1e

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

documentation/usage.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ In this documentation, in order to draw attention to the difference between the
77

88
- [`JSONAPI.ResourceObjectDescription`](#jsonapiresourceobjectdescription)
99
- [`JSONAPI.ResourceObject`](#jsonapiresourceobject)
10-
- [`Meta`](#meta)
11-
- [`Links`](#links)
12-
- [`MaybeRawId`](#mayberawid)
13-
- [`RawIdType`](#rawidtype)
14-
- [Convenient `typealiases`](#convenient-typealiases)
10+
- [`Meta`](#meta)
11+
- [`Links`](#links)
12+
- [`MaybeRawId`](#mayberawid)
13+
- [`RawIdType`](#rawidtype)
14+
- [Convenient `typealiases`](#convenient-typealiases)
1515
- [`JSONAPI.Relationships`](#jsonapirelationships)
1616
- [`JSONAPI.Attributes`](#jsonapiattributes)
17-
- [`Transformer`](#transformer)
18-
- [`Validator`](#validator)
19-
- [Computed `Attribute`](#computed-attribute)
17+
- [`Transformer`](#transformer)
18+
- [`Validator`](#validator)
19+
- [Computed `Attribute`](#computed-attribute)
2020
- [Copying/Mutating `ResourceObjects`](#copyingmutating-resourceobjects)
2121
- [`JSONAPI.Document`](#jsonapidocument)
22-
- [`ResourceBody`](#resourcebody)
23-
- [nullable `PrimaryResource`](#nullable-primaryresource)
24-
- [`MetaType`](#metatype)
25-
- [`LinksType`](#linkstype)
26-
- [`IncludeType`](#includetype)
27-
- [`APIDescriptionType`](#apidescriptiontype)
28-
- [`Error`](#error)
29-
- [`UnknownJSONAPIError`](#unknownjsonapierror)
30-
- [`BasicJSONAPIError`](#basicjsonapierror)
31-
- [`GenericJSONAPIError`](#genericjsonapierror)
22+
- [`ResourceBody`](#resourcebody)
23+
- [nullable `PrimaryResource`](#nullable-primaryresource)
24+
- [`MetaType`](#metatype)
25+
- [`LinksType`](#linkstype)
26+
- [`IncludeType`](#includetype)
27+
- [`APIDescriptionType`](#apidescriptiontype)
28+
- [`Error`](#error)
29+
- [`UnknownJSONAPIError`](#unknownjsonapierror)
30+
- [`BasicJSONAPIError`](#basicjsonapierror)
31+
- [`GenericJSONAPIError`](#genericjsonapierror)
3232
- [`JSONAPI.Meta`](#jsonapimeta)
3333
- [`JSONAPI.Links`](#jsonapilinks)
3434
- [`JSONAPI.RawIdType`](#jsonapirawidtype)
3535
- [Sparse Fieldsets](#sparse-fieldsets)
36-
- [Supporting Sparse Fieldset Encoding](#supporting-sparse-fieldset-encoding)
37-
- [Sparse Fieldset `typealias` comparisons](#sparse-fieldset-typealias-comparisons)
36+
- [Supporting Sparse Fieldset Encoding](#supporting-sparse-fieldset-encoding)
37+
- [Sparse Fieldset `typealias` comparisons](#sparse-fieldset-typealias-comparisons)
3838
- [Replacing and Tapping Attributes/Relationships](#replacing-and-tapping-attributesrelationships)
39-
- [Tapping](#tapping)
40-
- [Replacing](#replacing)
39+
- [Tapping](#tapping)
40+
- [Replacing](#replacing)
4141
- [Custom Attribute or Relationship Key Mapping](#custom-attribute-or-relationship-key-mapping)
4242
- [Custom Attribute Encode/Decode](#custom-attribute-encodedecode)
4343
- [Meta-Attributes](#meta-attributes)
@@ -244,8 +244,8 @@ If your computed property is wrapped in a `AttributeType` then you can still use
244244

245245
### Copying/Mutating `ResourceObjects`
246246
`ResourceObject` is a value type, so copying is its default behavior. There are three common mutations you might want to make when copying a `ResourceObject`:
247-
1. Assigning a new `ID` to the copy of an identified `ResourceObject`.
248-
2. Assigning a new `ID` to the copy of an unidentified `ResourceObject`.
247+
1. Assigning a new `Id` to the copy of an identified `ResourceObject`.
248+
2. Assigning a new `Id` to the copy of an unidentified `ResourceObject`.
249249
3. Change attribute or relationship values.
250250

251251
The first two can be accomplished with code like the following:

0 commit comments

Comments
 (0)