Skip to content

fix: add missing name to Segment struct #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Iandenh
Copy link

@Iandenh Iandenh commented Feb 18, 2025

About the changes

The Unleash server returns the segment's name in the client API endpoint. This is also documented here: https://docs.getunleash.io/reference/api/unleash/get-all-client-features

This is missing here in the types. And thereby not returned by Unleash Edge.

Important files

The name will be added as an optional property to the Segment struct.

Discussion points

My reason for making this an Option is to make it backwards compatible if you have multiple unleash edges chained to each other.

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