Skip to content

fix: add missing name to Segment struct#75

Open
Iandenh wants to merge 5 commits intoUnleash:mainfrom
Iandenh:missing-segment-name
Open

fix: add missing name to Segment struct#75
Iandenh wants to merge 5 commits intoUnleash:mainfrom
Iandenh:missing-segment-name

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