Skip to content

Commit

Permalink
Merge pull request #78 from splitwise/dylan/77/update-group_type-enum
Browse files Browse the repository at this point in the history
Update `group_type` enum
  • Loading branch information
dylanrainwater authored Dec 21, 2023
2 parents 205b610 + 43208cb commit 34e45cf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 5 additions & 4 deletions docs/index.html

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions paths/create_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ post:
type: string
group_type:
type: string
description: What is the group used for?
enum: [apartment, house, trip, other]
enum: [home, trip, couple, other, apartment, house]
example: "home"
description: |
What is the group used for?
**Note**: It is recommended to use `home` in place of `house` or `apartment`.
simplify_by_default:
type: boolean
description: Turn on simplify debts?
Expand Down
8 changes: 6 additions & 2 deletions schemas/group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ properties:
example: "Housemates 2020"
group_type:
type: string
enum: [apartment, house, trip, other]
example: "apartment"
enum: [home, trip, couple, other, apartment, house]
example: "home"
description: |
What is the group used for?
**Note**: It is recommended to use `home` in place of `house` or `apartment`.
updated_at:
type: string
format: date-time
Expand Down
2 changes: 1 addition & 1 deletion splitwise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ tags:
- name: groups
x-displayName: Groups
description:
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.
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.
Expenses assigned to a group are split among the users of that group.
Importantly, two users in a Group can also have expenses with one another outside of the Group.
- name: friends
Expand Down

0 comments on commit 34e45cf

Please sign in to comment.