Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Object #52

Closed
FabioTeixeira opened this issue Aug 13, 2018 · 0 comments
Closed

Nested Object #52

FabioTeixeira opened this issue Aug 13, 2018 · 0 comments

Comments

@FabioTeixeira
Copy link

FabioTeixeira commented Aug 13, 2018

Hi there,
I'm trying to do a schema with nested objects and I want to make some fields inside the object required.
As an example,

type: 'object',
person:{
    type: 'object',
    description:{
        firstName:{
               type: 'string',
               length: 2           
                         }
 }
}

How can i make 'firstName' required?
cumps

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

No branches or pull requests

1 participant