Skip to content

Conversation

erfanium
Copy link
Collaborator

@erfanium erfanium commented May 26, 2020

With this shorthand, validating a nested object will be easier.
old:

schema = {
   a: {
      type: "object",
      props: {
         b: {
            type: "object",
            props: {
               c: "string"
            }
         }
      }
   }
}

new:

schema = {
   a: {
      $$type: "object",
      b: {
         $$type: "object",
         c: "string"
      }
   }
}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5a4da85 on erfanium:master into 5ad4fb9 on icebob:master.

Copy link
Owner

@icebob icebob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting feature, thanks!

@icebob icebob merged commit 22edf46 into icebob:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants