Skip to content

fix: allow top-level unions to be validated properly#113

Open
JoeyEamigh wants to merge 1 commit intoelysiajs:mainfrom
JoeyEamigh:fix-top-level-union-validation
Open

fix: allow top-level unions to be validated properly#113
JoeyEamigh wants to merge 1 commit intoelysiajs:mainfrom
JoeyEamigh:fix-top-level-union-validation

Conversation

@JoeyEamigh
Copy link

Previously, top-level unions passed to the jwt validator would create an invalid schema when intersected with the claims object. This tests for a top-level anyOf and maps into that if present.

@JoeyEamigh
Copy link
Author

This is related to elysiajs/elysia#1337. Bug in this repo, not in the validators as a whole.

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