8000 fix(typebox): Allow default value in StringEnum by AshotN · Pull Request #3281 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

fix(typebox): Allow default value in StringEnum#3281

Merged
daffl merged 1 commit intofeathersjs:dovefrom
AshotN:patch-2
Oct 3, 2023
Merged

fix(typebox): Allow default value in StringEnum#3281
daffl merged 1 commit intofeathersjs:dovefrom
AshotN:patch-2

Conversation

@AshotN
Copy link
Contributor
@AshotN AshotN commented Sep 26, 2023

Summary

Closes #3280

Other Information

This is a PR that expands StringEnum to accept a default value. I would prefer to expand the type to allow for all of the TSchema properties. But I was not able to figure out the types for it.

Would appreciate some assistance completing the types if possible

@daffl daffl marked this pull request as ready for review September 26, 2023 19:24
@daffl daffl changed the title Allow default value in StringEnum fix(typebox): Allow default value in StringEnum Sep 26, 2023
Copy link
Member
@daffl daffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I think that makes sense we just have to add it to the docs at https://github.com/feathersjs/feathers/blob/dove/docs/api/schema/typebox.md#stringenum as well.

@daffl daffl merged commit 25af09a into feathersjs:dove Oct 3, 2023
@AshotN AshotN deleted the patch-2 branch September 17, 2024 04:12
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.

Allow StringEnum to have a default value

2 participants

0