electron-store icon indicating copy to clipboard operation
electron-store copied to clipboard

Required field in schema

Open georgecoca opened this issue 1 year ago • 1 comments

Is it possible to make a field required in provided schema?

const schema = {
	foo: {
		type: 'number',
		maximum: 100,
		minimum: 1,
		default: 50
	},
	bar: {
		type: 'string', // make it required
		format: 'url'
	}
};

const store = new Store({schema});

Thank you

georgecoca avatar Jul 28 '23 12:07 georgecoca

Hello, you can refer to JSON Schema standard

AutismPatient avatar Sep 02 '23 09:09 AutismPatient