Skip to content

Commit 3dd4686

Browse files
authored
fix: JSON format (#938)
1 parent 54b76b4 commit 3dd4686

File tree

7 files changed

+24
-694
lines changed

7 files changed

+24
-694
lines changed

api/docs.go

Lines changed: 2 additions & 247 deletions
Original file line numberDiff line numberDiff line change
@@ -5917,251 +5917,6 @@ const docTemplate = `{
59175917
}
59185918
}
59195919
},
5920-
"models.Account": {
5921-
"type": "object",
5922-
"properties": {
5923-
"archived": {
5924-
"type": "boolean"
5925-
},
5926-
"budget": {
5927-
"$ref": "#/definitions/models.Budget"
5928-
},
5929-
"budgetID": {
5930-
"type": "string"
5931-
},
5932-
"createdAt": {
5933-
"description": "Time the resource was created",
5934-
"type": "string",
5935-
"example": "2022-04-02T19:28:44.491514Z"
5936-
},
5937-
"deletedAt": {
5938-
"description": "Time the resource was marked as deleted",
5939-
"type": "string",
5940-
"example": "2022-04-22T21:01:05.058161Z"
5941-
},
5942-
"external": {
5943-
"type": "boolean"
5944-
},
5945-
"id": {
5946-
"description": "UUID for the resource",
5947-
"type": "string",
5948-
"example": "65392deb-5e92-4268-b114-297faad6cdce"
5949-
},
5950-
"importHash": {
5951-
"description": "A SHA256 hash of a unique combination of values to use in duplicate detection for imports",
5952-
"type": "string"
5953-
},
5954-
"initialBalance": {
5955-
"type": "number"
5956-
},
5957-
"initialBalanceDate": {
5958-
"type": "string"
5959-
},
5960-
"name": {
5961-
"type": "string"
5962-
},
5963-
"note": {
5964-
"type": "string"
5965-
},
5966-
"onBudget": {
5967-
"type": "boolean"
5968-
},
5969-
"updatedAt": {
5970-
"description": "Last time the resource was updated",
5971-
"type": "string",
5972-
"example": "2022-04-17T20:14:01.048145Z"
5973-
}
5974-
}
5975-
},
5976-
"models.Budget": {
5977-
"type": "object",
5978-
"properties": {
5979-
"createdAt": {
5980-
"description": "Time the resource was created",
5981-
"type": "string",
5982-
"example": "2022-04-02T19:28:44.491514Z"
5983-
},
5984-
"currency": {
5985-
"type": "string"
5986-
},
5987-
"deletedAt": {
5988-
"description": "Time the resource was marked as deleted",
5989-
"type": "string",
5990-
"example": "2022-04-22T21:01:05.058161Z"
5991-
},
5992-
"id": {
5993-
"description": "UUID for the resource",
5994-
"type": "string",
5995-
"example": "65392deb-5e92-4268-b114-297faad6cdce"
5996-
},
5997-
"name": {
5998-
"type": "string"
5999-
},
6000-
"note": {
6001-
"type": "string"
6002-
},
6003-
"updatedAt": {
6004-
"description": "Last time the resource was updated",
6005-
"type": "string",
6006-
"example": "2022-04-17T20:14:01.048145Z"
6007-
}
6008-
}
6009-
},
6010-
"models.Category": {
6011-
"type": "object",
6012-
"properties": {
6013-
"archived": {
6014-
"type": "boolean"
6015-
},
6016-
"budget": {
6017-
"$ref": "#/definitions/models.Budget"
6018-
},
6019-
"budgetID": {
6020-
"type": "string"
6021-
},
6022-
"createdAt": {
6023-
"description": "Time the resource was created",
6024-
"type": "string",
6025-
"example": "2022-04-02T19:28:44.491514Z"
6026-
},
6027-
"deletedAt": {
6028-
"description": "Time the resource was marked as deleted",
6029-
"type": "string",
6030-
"example": "2022-04-22T21:01:05.058161Z"
6031-
},
6032-
"id": {
6033-
"description": "UUID for the resource",
6034-
"type": "string",
6035-
"example": "65392deb-5e92-4268-b114-297faad6cdce"
6036-
},
6037-
"name": {
6038-
"type": "string"
6039-
},
6040-
"note": {
6041-
"type": "string"
6042-
},
6043-
"updatedAt": {
6044-
"description": "Last time the resource was updated",
6045-
"type": "string",
6046-
"example": "2022-04-17T20:14:01.048145Z"
6047-
}
6048-
}
6049-
},
6050-
"models.Envelope": {
6051-
"type": "object",
6052-
"properties": {
6053-
"archived": {
6054-
"type": "boolean"
6055-
},
6056-
"category": {
6057-
"$ref": "#/definitions/models.Category"
6058-
},
6059-
"categoryID": {
6060-
"type": "string"
6061-
},
6062-
"createdAt": {
6063-
"description": "Time the resource was created",
6064-
"type": "string",
6065-
"example": "2022-04-02T19:28:44.491514Z"
6066-
},
6067-
"deletedAt": {
6068-
"description": "Time the resource was marked as deleted",
6069-
"type": "string",
6070-
"example": "2022-04-22T21:01:05.058161Z"
6071-
},
6072-
"id": {
6073-
"description": "UUID for the resource",
6074-
"type": "string",
6075-
"example": "65392deb-5e92-4268-b114-297faad6cdce"
6076-
},
6077-
"name": {
6078-
"type": "string"
6079-
},
6080-
"note": {
6081-
"type": "string"
6082-
},
6083-
"updatedAt": {
6084-
"description": "Last time the resource was updated",
6085-
"type": "string",
6086-
"example": "2022-04-17T20:14:01.048145Z"
6087-
}
6088-
}
6089-
},
6090-
"models.Transaction": {
6091-
"type": "object",
6092-
"properties": {
6093-
"amount": {
6094-
"type": "number"
6095-
},
6096-
"availableFrom": {
6097-
"description": "Only used for income transactions. Defaults to the transaction date.",
6098-
"type": "string"
6099-
},
6100-
"budget": {
6101-
"$ref": "#/definitions/models.Budget"
6102-
},
6103-
"budgetID": {
6104-
"type": "string"
6105-
},
6106-
"createdAt": {
6107-
"description": "Time the resource was created",
6108-
"type": "string",
6109-
"example": "2022-04-02T19:28:44.491514Z"
6110-
},
6111-
"date": {
6112-
"description": "Time of day is currently only used for sorting",
6113-
"type": "string"
6114-
},
6115-
"deletedAt": {
6116-
"description": "Time the resource was marked as deleted",
6117-
"type": "string",
6118-
"example": "2022-04-22T21:01:05.058161Z"
6119-
},
6120-
"destinationAccount": {
6121-
"$ref": "#/definitions/models.Account"
6122-
},
6123-
"destinationAccountID": {
6124-
"type": "string"
6125-
},
6126-
"envelope": {
6127-
"$ref": "#/definitions/models.Envelope"
6128-
},
6129-
"envelopeID": {
6130-
"type": "string"
6131-
},
6132-
"id": {
6133-
"description": "UUID for the resource",
6134-
"type": "string",
6135-
"example": "65392deb-5e92-4268-b114-297faad6cdce"
6136-
},
6137-
"importHash": {
6138-
"description": "The SHA256 hash of a unique combination of values to use in duplicate detection when importing transactions",
6139-
"type": "string"
6140-
},
6141-
"note": {
6142-
"type": "string"
6143-
},
6144-
"reconciledDestination": {
6145-
"description": "Is the transaction reconciled in the destination account?",
6146-
"type": "boolean"
6147-
},
6148-
"reconciledSource": {
6149-
"description": "Is the transaction reconciled in the source account?",
6150-
"type": "boolean"
6151-
},
6152-
"sourceAccount": {
6153-
"$ref": "#/definitions/models.Account"
6154-
},
6155-
"sourceAccountID": {
6156-
"type": "string"
6157-
},
6158-
"updatedAt": {
6159-
"description": "Last time the resource was updated",
6160-
"type": "string",
6161-
"example": "2022-04-17T20:14:01.048145Z"
6162-
}
6163-
}
6164-
},
61655920
"root.Links": {
61665921
"type": "object",
61675922
"properties": {
@@ -7903,7 +7658,7 @@ const docTemplate = `{
79037658
"example": "Employer"
79047659
},
79057660
"transaction": {
7906-
"$ref": "#/definitions/models.Transaction"
7661+
"$ref": "#/definitions/v3.Transaction"
79077662
}
79087663
}
79097664
},
@@ -9694,7 +9449,7 @@ const docTemplate = `{
96949449
"example": "Employer"
96959450
},
96969451
"transaction": {
9697-
"$ref": "#/definitions/models.Transaction"
9452+
"$ref": "#/definitions/v4.Transaction"
96989453
}
96999454
}
97009455
},

0 commit comments

Comments
 (0)