{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/moneyhub/main/json-schema/moneyhub-spending-goal-patch-schema.json", "title": "SpendingGoalPatch", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/moneyhub-spending-goals-api-openapi.yml#/components/schemas/SpendingGoalPatch", "properties": { "categoryId": { "description": "The id of the category the spending goal should be created for", "type": "string" }, "amount": { "properties": { "value": { "description": "The amount of the spending goal in minor units of the currency, eg. pennies for GBP.", "type": "integer", "exclusiveMinimum": 0 } }, "required": [ "value" ], "type": "object" } }, "type": "object" }