Skip to content

fix(widget): permit null in validator provider revshare decoding - #575

Merged
petar-omni merged 1 commit into
mainfrom
fix/validator-provider-revshare-decode
Sep 21, 2026
Merged

petar-omni merged 1 commit into
mainfrom
fix/validator-provider-revshare-decode

Conversation

@petar-omni

@petar-omni petar-omni commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Allow null for ValidatorProviderDto.revshare in OpenAPI decoding, regenerate API schemas and clients, and add regression coverage.
  • Point the default LegacyApi OpenAPI document URL at staging to avoid the production ALB 404.
  • Strip NestJS _v1 suffixes from generated operation names so client methods and DTOs keep stable names.
  • Close unannotated OpenAPI object schemas in prepareSpecContents so Effect rc.115 generates Schema.Struct values with .fields.

Why

Validator and yield-provider responses can return revshare: null. The generated decoder previously rejected those responses.

Supersedes #570.

@changeset-bot

changeset-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0ca7c1c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@aws-amplify-eu-central-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-575.df4xyoi0xyeak.amplifyapp.com

@aws-amplify-eu-central-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-575.d2ribjy8evqo6h.amplifyapp.com

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit cf34849. Configure here.

@cursor
cursor Bot requested review from Philippoes and jdomingos September 21, 2026 08:45

@cursor cursor Bot 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.

Stale comment

Risk: medium. Left a non-blocking comment and did not approve: this is above the low-risk threshold, Cursor Bugbot did not complete successfully and has an unresolved finding, and human review is needed. Assigned reviewers.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

…enapi generation

- Permit null in ValidatorProviderDto.revshare decoding (OpenAPI spec patch,
  regenerated schemas, and domain regression tests).
- Target production API doc endpoints (api.stakek.it, api.yield.xyz, and
  borrow.yield.xyz) for OpenAPI generation.
- Strip _v1 operation ID suffixes emitted by NestJS URI versioning so client
  methods and DTOs retain stable names.
- Close unannotated OpenAPI object schemas in prepareSpecContents so Effect
  rc.115 generates Schema.Struct preserving .fields access.
- Support "supplyAndBorrow" action and "BUNDLE" transaction types in SKBorrowTxMeta.
- Add blueBundleOriginationFeeBps to borrow test mock fixtures.
@petar-omni
petar-omni force-pushed the fix/validator-provider-revshare-decode branch from cf34849 to 0ca7c1c Compare September 21, 2026 08:52

@cursor cursor Bot 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.

Risk: medium. Left a non-blocking comment and did not approve: regenerated API clients/schemas and OpenAPI generation changes exceed the low-risk threshold, so human review is needed. Reviewers were already assigned, so none were added.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@petar-omni
petar-omni merged commit ebd7fe5 into main Sep 21, 2026
10 checks passed
@petar-omni
petar-omni deleted the fix/validator-provider-revshare-decode branch September 21, 2026 14:34
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.

3 participants