Skip to content

Commit

Permalink
Mark isFavorite in ContactGroup as optional
Browse files Browse the repository at this point in the history
- Reported by @MrKoookaburra in #73
- Closes #78 (superseded)
  • Loading branch information
AidanLovelace authored and demurgos committed Jan 15, 2018
1 parent e79d10f commit faf4879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- **[Fix]** Do not throw on unexpected extra keys when reading responses.
- **[Fix]** Fix message host resolution (API change).
- **[Fix]** Mark `isFavorite` in `ContactGroup` as optional.
- **[Fix]** Mark `name` in `ContactProfile` as optional.

# 0.0.14 (2018-01-12)

Expand Down
4 changes: 2 additions & 2 deletions src/lib/types/contact-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import { Ucs2StringType } from "kryo/types/ucs2-string";
export interface ContactGroup {
id: string;
name: string;
isFavorite: boolean;
isFavorite?: boolean;
}

export const $ContactGroup: DocumentType<ContactGroup> = new DocumentType<ContactGroup>({
properties: {
id: {type: new Ucs2StringType({maxLength: Infinity})},
name: {type: new Ucs2StringType({maxLength: Infinity})},
isFavorite: {type: new BooleanType()},
isFavorite: {type: new BooleanType(), optional: true},
},
rename: CaseStyle.SnakeCase,
ignoreExtraKeys: true,
Expand Down

0 comments on commit faf4879

Please sign in to comment.