Skip to content

Commit 208fe2c

Browse files
authored
Merge pull request #52 from splitwise/expense-split-equally-group-correction
Require nonzero group ID in equal-split method
2 parents 79d0736 + 3f46c4a commit 208fe2c

5 files changed

Lines changed: 1949 additions & 229 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/index.html linguist-generated=true

docs/index.html

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

schemas/expense/by_shares.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ allOf:
22
- $ref: ./common.yaml
33
- type: object
44
properties:
5+
group_id:
6+
type: integer
7+
description: The group to put this expense in, or `0` to create an expense outside of a group.
58
users__0__user_id:
69
type: integer
710
example: 54123

schemas/expense/common.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ properties:
44
type: string
55
example: "25"
66
description: A string representation of a decimal value, limited to 2 decimal places
7-
group_id:
8-
type: integer
9-
description: The group to put this expense in, or `0` to create an expense outside of a group.
107
description:
118
type: string
129
description: A short description of the expense

schemas/expense/equal_group_split.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ allOf:
22
- $ref: ./common.yaml
33
- type: object
44
properties:
5+
group_id:
6+
type: integer
7+
description: The group to put this expense in.
58
split_equally:
69
type: boolean
710
enum: [true]

0 commit comments

Comments
 (0)