-
Notifications
You must be signed in to change notification settings - Fork 6
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
Disallow union of code in BaseErrorSchema #262
Disallow union of code in BaseErrorSchema #262
Conversation
Current dependencies on/for this PR:
This comment was autogenerated by Freephite. |
message: TLiteralString | TString; | ||
}> | ||
| TObject<{ | ||
code: TLiteralString | TUnion<Array<TLiteralString>>; | ||
code: TLiteralString; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an advantage of having this be a union of two types that only differ by an optional extras
?
this is giving me "corporate wants you to find the differences between these two pictures" vibes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly we haven't used extras anywhere, maybe a YAGNI and we should get rid of it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a7a5d5a
to
b8a4f66
Compare
Why
Currently we allow a union of error objects and those objects can have a union of codes. For consistency, especially to simplify codegen, let's just expect a union of objects.
What changed
Versioning