feat: separate out enum names and values
Fixes https://github.com/dagger/dagger/issues/8671 - the aim is to fix all the remaining little nits with enums that make them tricky to use (also wanting to unblock #8608).
TODO:
- [x] Tidy up core enum names
- [x] Improved
withEnumMemberAPI for enum members - [ ] Kick off migration from
withEnumValuetowithEnumMemberin all SDKs- [x] Go
- [x] Python
- [ ] Typescript
- [ ] Backwards compat (this is gonna be bit tricky)
- [ ] Handle renamed types,
ImageMediaType->ImageMediaTypes,EnumValueTypeDef->EnumMemberTypeDef - [ ] Ensure that codegen for enums in dependencies stays the same
- [x] Keep old TypeDef field
EnumTypeDef.values - [x] Keep old core enum values (using member aliases)
- [ ] Add new legacy tests
- [ ] Handle renamed types,
- [ ] Fix inevitably broken tests
- [ ] Clean up
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
I split some work out to #10058, so will rebase on that once merged.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
Will looking for Elixir within today✌️