Added nesting #2
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GamBar/FolderDB!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "schema-object-nesting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added nesting to the schema validations.
would you like to try and add a unit test for this? :)
If not ill add a few at a later point
@ -13,6 +15,8 @@ function validateAndTransform(object) {const result = additiveTransform(rules, key);Is it possible to bind the nested rules as a new this.blueprint, that way we dont intruduce a property that is used only under very specific conditions, id like to shape the implementation around the code instead of the code around the implementation
@ -13,6 +15,8 @@ function validateAndTransform(object) {const result = additiveTransform(rules, key);I tinkered with it and couldn't make it work. The point of the addiotional property is to send over the nested rules, but updating this.blueprint doesn't update it's value during recursion. And if it did, it gets returned at the end of the function, so it might need a property to save the initial data, regardless.
I have, let me know if they do the job and/or you need more.
Thank you! Everything checks out
@ -13,6 +15,8 @@ function validateAndTransform(object) {const result = additiveTransform(rules, key);Thanks for looking into it
Looks good