Skip to content

Commit 8bdfc8b

Browse files
committed
chore: deprecate balance field
1 parent 435cac7 commit 8bdfc8b

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

api/docs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,6 +2913,7 @@ const docTemplate = `{
29132913
"type": "object",
29142914
"properties": {
29152915
"balance": {
2916+
"description": "DEPRECATED. Will be removed in API v2, see https://github.com/envelope-zero/backend/issues/526.",
29162917
"type": "number",
29172918
"example": 3423.42
29182919
},

api/swagger.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,6 +2901,7 @@
29012901
"type": "object",
29022902
"properties": {
29032903
"balance": {
2904+
"description": "DEPRECATED. Will be removed in API v2, see https://github.com/envelope-zero/backend/issues/526.",
29042905
"type": "number",
29052906
"example": 3423.42
29062907
},

api/swagger.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ definitions:
139139
controllers.Budget:
140140
properties:
141141
balance:
142+
description: DEPRECATED. Will be removed in API v2, see https://github.com/envelope-zero/backend/issues/526.
142143
example: 3423.42
143144
type: number
144145
createdAt:

pkg/models/budget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type Budget struct {
1717
DefaultModel
1818
BudgetCreate
19-
Balance decimal.Decimal `json:"balance" gorm:"-" example:"3423.42"`
19+
Balance decimal.Decimal `json:"balance" gorm:"-" example:"3423.42"` // DEPRECATED. Will be removed in API v2, see https://github.com/envelope-zero/backend/issues/526.
2020
}
2121

2222
type BudgetCreate struct {

0 commit comments

Comments
 (0)