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

Help creating an scheme w objects? #251

Open
hmpmarketing opened this issue Feb 27, 2023 · 0 comments
Open

Help creating an scheme w objects? #251

hmpmarketing opened this issue Feb 27, 2023 · 0 comments

Comments

@hmpmarketing
Copy link

hmpmarketing commented Feb 27, 2023

Hi,

I have been trying to get an scheme with default object properties but cant seem to get to work. Here is what I have:

const schema = {
	settings : {
		type: 'object',
		properties: {
			property_1 : {
				type: 'object',
				properties: {
					auto: {
						type: 'string',
						default: '0'	
					},
					size: {
						type: 'string',
						default: '5'
					}
				}
			},
			property_2 : {
				type: 'object',
				properties: {
					auto: {
						type: 'string',
						default: '0'	
					},
					size: {
						type: 'string',
						default: '5'
					}
				}
			}
		}
	}
}

Can anyone help?

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