-
Notifications
You must be signed in to change notification settings - Fork 3
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
Invalid definition for status.$ field #3
Comments
I believe SimpleSchema is throwing an exception at simple-schema.js#L457 while trying to "pick" the status field because the schema definition for your status field has failed a validation test. Perhaps some field in that schema definition has the wrong name or type? |
@jdnichollsc I had the exact same issue (error at packages/aldeed_simple-schema.js:1429:13). Got items: {
type: [Object],
label: 'Items',
optional: true,
},
'items.$.sku': {
type: String,
label: 'SKU',
}, to: items: {
type: Array,
optional: true,
},
'items.$': {
type: Object,
optional: true,
},
'items.$.description': {
type: String,
}, Which is essentially the same thing. |
Oh, just saw this in the docs
See https://github.com/aldeed/meteor-simple-schema#extracting-simpleschemas My schema change above was probably not the fix, but rather that I started picking also the |
Hi guys,
I'm getting the following error:
And my code is
Thanks in advance, Nicholls
The text was updated successfully, but these errors were encountered: