-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To improve performance, skip validating subschemas in oneOf / anyOf i…
…f formData is undefined (#2676) * Fixing getMatchingOption Fixing getMatchingOption in the case of oneOf/anyOf by validating schema only when formData is available * add proper return on formData check add proper return on formData check in getMatchingOption() * Test utils when formData is undefined Test utils when formData is undefined * moving formData check in getMatchingOption() For performance, skip validating subschemas if formData is undefined. We just want to get the first option in that case. moving formData check to beginning of getMatchingOption() * Add a test for getMatchingOption when passing null Add a test for getMatchingOption where formData is null Where option 2 is {type: null} We expect getMatchingOption to be equal to 2 * after fixing lint errors after fixing lint errors * utils: fix linter issue * CHANGELOG: add entry for performance PR * CHANGELOG: rephrase change Co-authored-by: Robin de Rooij <rderooij685@gmail.com>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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