Skip to content

fix: normalize permission objects and release ts sdk v0.2.2#3

Merged
loookashow merged 2 commits intomainfrom
fix/flux-role-permission-objects
Mar 6, 2026
Merged

fix: normalize permission objects and release ts sdk v0.2.2#3
loookashow merged 2 commits intomainfrom
fix/flux-role-permission-objects

Conversation

@loookashow
Copy link
Copy Markdown
Contributor

Summary

This PR fixes SDK/API response shape mismatches for permission objects that could cause instability in role-bound Flux auth integration scenarios.

Changes

  • Added permission object payload normalization in ManagementClient:
    • supports list responses in { results: [...] } format
    • supports single-object responses
    • maps object to object_key
    • adds fallback for POST responses with 201 and empty body (returns data from request payload)
  • Updated tests for management/flux permission objects to cover both legacy and new response formats.
  • Bumped package version to 0.2.2.
  • Minor README formatting cleanup.

Validation

  • pnpm test passed (224 passed)
  • pnpm build passed

Compatibility

  • Backward-compatible: both old and new API response formats are supported.

@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@loookashow loookashow merged commit 163e3b9 into main Mar 6, 2026
3 checks passed
@loookashow loookashow deleted the fix/flux-role-permission-objects branch March 6, 2026 14:42
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