Skip to content

feat: improve response types from "any" to typed lease data responses#7033

Draft
varonix0 wants to merge 1 commit into
mainfrom
daniel/dynamic-secret-response-types
Draft

feat: improve response types from "any" to typed lease data responses#7033
varonix0 wants to merge 1 commit into
mainfrom
daniel/dynamic-secret-response-types

Conversation

@varonix0

Copy link
Copy Markdown
Member

Context

DRAFT:

This PR aims to add better type safety for the leased data that we return. Historically, we've just been returning unknown, which in the documentation has been reflected as return type any. The user had no way to tell what data structure was going to be returned when they go and generate a lease, because it differs slightly between most of our dynamic secret lease types. This PR addresses that gap.

Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g., fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Updated CLAUDE.md files (if needed)
  • Read the contributing guide

@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-infisical-7033-feat-improve-response-types-from-any-to-typed-lease-dat

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

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.

1 participant