Skip to content

Commit 34e45cf

Browse files
Merge pull request #78 from splitwise/dylan/77/update-group_type-enum
Update `group_type` enum
2 parents 205b610 + 43208cb commit 34e45cf

4 files changed

Lines changed: 18 additions & 9 deletions

File tree

docs/index.html

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

paths/create_group.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ post:
1919
type: string
2020
group_type:
2121
type: string
22-
description: What is the group used for?
23-
enum: [apartment, house, trip, other]
22+
enum: [home, trip, couple, other, apartment, house]
23+
example: "home"
24+
description: |
25+
What is the group used for?
26+
27+
**Note**: It is recommended to use `home` in place of `house` or `apartment`.
2428
simplify_by_default:
2529
type: boolean
2630
description: Turn on simplify debts?

schemas/group.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ properties:
88
example: "Housemates 2020"
99
group_type:
1010
type: string
11-
enum: [apartment, house, trip, other]
12-
example: "apartment"
11+
enum: [home, trip, couple, other, apartment, house]
12+
example: "home"
13+
description: |
14+
What is the group used for?
15+
16+
**Note**: It is recommended to use `home` in place of `house` or `apartment`.
1317
updated_at:
1418
type: string
1519
format: date-time

splitwise.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ tags:
277277
- name: groups
278278
x-displayName: Groups
279279
description:
280-
A Group represents a collection of users who share expenses together. For example, some users use a Group to aggregate expenses related to an apartment. Others use it to represent a trip.
280+
A Group represents a collection of users who share expenses together. For example, some users use a Group to aggregate expenses related to a home. Others use it to represent a trip.
281281
Expenses assigned to a group are split among the users of that group.
282282
Importantly, two users in a Group can also have expenses with one another outside of the Group.
283283
- name: friends

0 commit comments

Comments
 (0)