-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(validation): Add validation to addParent(). (#150)
Explicit parent field validation authored by @mansoor.sajjad With this change, any attempt to add a field with a name not supported by `pelias/schema` will throw an error. * Adding parentFields validation in addParent. * Removing 'macrohood' from the parentFields as it's not supported by the pelias schema. * Removing 'macrohood' from the parentFields in the unit test. Co-authored-by: mansoor.sajjad <[email protected]>
- Loading branch information
1 parent
c7b708b
commit 83b64de
Showing
2 changed files
with
18 additions
and
4 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