electron-store
electron-store copied to clipboard
Required field in schema
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
Hello, you can refer to JSON Schema standard