Skip to content

Regenerate SDK from spec 1.86.0#35

Merged
bradymholt merged 4 commits into
mainfrom
gen-1-86-0
Jul 15, 2026
Merged

Regenerate SDK from spec 1.86.0#35
bradymholt merged 4 commits into
mainfrom
gen-1-86-0

Conversation

@bradymholt

@bradymholt bradymholt commented Jul 15, 2026

Copy link
Copy Markdown
Member

Regenerated the client from the YNAB API server specification. This branch bundles two spec-regeneration refreshes into one PR against main.

Functional changes

goal_frequency added to SaveCategory (1.85.0 -> 1.86.0)

A new goal_frequency field lets you configure a recurring 'NEED' target that repeats monthly, weekly, or yearly. It requires goal_target, cannot be combined with goal_target_date, and is not supported for Credit Card Payment categories. The generated model validates the value against the enum:

goal_frequency: Optional[StrictStr] = Field(default=None, ...)

@field_validator('goal_frequency')
def goal_frequency_validate_enum(cls, value):
    if value is None:
        return value
    if value not in set(['monthly', 'weekly', 'yearly']):
        raise ValueError("must be one of enum values ('monthly', 'weekly', 'yearly')")
    return value

The spec also clarifies that passing null for goal_target when updating a category removes any existing target.

PATCH /transactions success response code: 200 -> 209

The documented success response code for the bulk transaction update endpoint changed from 200 to 209, reflected in open_api_spec.yaml, docs/TransactionsApi.md, and the bulk-update methods in ynab/api/transactions_api.py.

Other

  • Expanded tag and field documentation (User, Plans, Accounts, Categories, Payees, Money Movements, Transactions, Scheduled Transactions) and the version bump propagated through the generated headers.
  • Adds scripts/generate-and-pr.sh, the wrapper that regenerates the SDK and hands the commit + PR off to Claude.

@bradymholt bradymholt changed the title placeholder Regenerate SDK from spec 1.86.0: add goal_frequency to SaveCategory Jul 15, 2026
Regenerated the client from the YNAB API spec 1.86.0 (previously 1.85.0).
@bradymholt
bradymholt requested review from a team and ynab-michael and removed request for a team July 15, 2026 13:18
@bradymholt bradymholt changed the title Regenerate SDK from spec 1.86.0: add goal_frequency to SaveCategory Regenerate SDK from spec 1.86.0 Jul 15, 2026
Routine regeneration from the YNAB OpenAPI spec (1.86.0 -> 1.86.0).

Functional change:
- PATCH /transactions success response code changed from 200 -> 209
  in the spec, docs, and the bulk-update methods in transactions_api.py.

Also adds scripts/generate-and-pr.sh, the wrapper that regenerates the
SDK and hands off the commit + PR to Claude.
Adds the automated PR workflow as an alternative to the manual
generate.sh + open-PR steps.
@bradymholt
bradymholt enabled auto-merge July 15, 2026 16:00
Bash now handles the commit, branch, push, and PR creation via git/gh;
claude is invoked only to draft the PR body from the spec diff.

@ynab-michael ynab-michael left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not run the script myself, but it looks good.

@bradymholt
bradymholt merged commit b49a770 into main Jul 15, 2026
7 checks passed
@bradymholt
bradymholt deleted the gen-1-86-0 branch July 15, 2026 18:19
@github-actions

Copy link
Copy Markdown

The changes in this PR were just released in 4.3.0 🎉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants