Skip to content

Commit

Permalink
[Issue #17] Fixed incorrect parameter name in multiple decoders secti…
Browse files Browse the repository at this point in the history
…on of README.
  • Loading branch information
cnoon committed Nov 21, 2016
1 parent 7e1646a commit 6564614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class AvatarDecoder: Decoder {
let widthKeyPath = "width"
let heightKeyPath = "height"

let entity = try Parser.parseEntity(json: json) { schema in
let entity = try Parser.parseEntity(json: object) { schema in
schema.addProperty(keyPath: urlKeyPath, type: .url)
schema.addProperty(keyPath: widthKeyPath, type: .int)
schema.addProperty(keyPath: heightKeyPath, type: .int)
Expand All @@ -238,7 +238,7 @@ class AlternateAvatarDecoder: Decoder {
let wKeyPath = "w"
let hKeyPath = "h"

let entity = try Parser.parseEntity(json: json) { schema in
let entity = try Parser.parseEntity(json: object) { schema in
schema.addProperty(keyPath: locationKeyPath, type: .url)
schema.addProperty(keyPath: wKeyPath, type: .int)
schema.addProperty(keyPath: hKeyPath, type: .int)
Expand Down

0 comments on commit 6564614

Please sign in to comment.