Skip to content

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Oct 5, 2020

Spotted while working on #1353
Right now, if enum contains a null and the value does not match, an exception is thrown.
Also opened a PR to the upstream package atlassian/better-ajv-errors#82

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@P0lip P0lip added the t/bug Something isn't working label Oct 5, 2020
@P0lip P0lip self-assigned this Oct 5, 2020
@P0lip P0lip force-pushed the fix/non-string-enum-values-ajv-errors branch from bdd54b0 to 53c6950 Compare October 5, 2020 20:11
@P0lip P0lip requested a review from philsturgeon October 5, 2020 20:11
@P0lip P0lip force-pushed the fix/non-string-enum-values-ajv-errors branch from 53c6950 to 040ebc8 Compare October 6, 2020 10:53
philsturgeon
philsturgeon previously approved these changes Oct 7, 2020
@P0lip P0lip merged commit a540ccc into develop Oct 7, 2020
@P0lip P0lip deleted the fix/non-string-enum-values-ajv-errors branch October 7, 2020 21:45
P0lip added a commit that referenced this pull request Nov 1, 2020
* fix(schema): handle non-string enum values

* test: update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants