Set up ability to generate union types for RPC#13
Merged
THEjacob1000 merged 1 commit intomasterfrom Dec 17, 2025
Merged
Conversation
793a236 to
ea3db33
Compare
18 tasks
peter-newman-loke
approved these changes
Dec 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Internal change only
AJV Docs: https://ajv.js.org/json-type-definition.html#union-keyword
This PR adds the ability to generate union types without them having to be discriminated unions. Allowing us to define unions like this:
And have it generate out like this:
Submitter Checklist
Check only those that apply to this change.
Testing Evidence
What evidence supports that you have tested this change?
Reviewer Checklist
Note: if this PR affects authentication or payments please seek a secondary tester.