-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Export missing attributes in Settings.ToMap
The following attributes were missing in the result Map returned by the Settings.ToMap function: * `enableRules` * `ignorePlurals` * `sortFacetValuesBy` Also, some fields may not have been properly transformed because the Settings.clean function was not called to clean some fields with sane defaults. This commits fixes all the aformentioned issues and adds a test to ensure that any new field added to the Settings struct will make the tests fail in not handled in the Settings.ToMap function.
- Loading branch information
Showing
2 changed files
with
38 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