We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey!
During integration between uniforms (React forms package) and SimpleSchema2 (vazco/uniforms#99), I've found this bug.
// I'm using the explicit notation, so it work also with the previous version const schemaA = new SimpleSchema({a: {type: new SimpleSchema({b: {type: new SimpleSchema({c: {type: String}})}})}}); const schemaB = new SimpleSchema({a: {type: Object}, 'a.b': {type: Object}, 'a.b.c': {type: String}}); // SimpleSchema console.log(schemaA.objectKeys('a')); // ['b'] console.log(schemaB.objectKeys('a')); // ['b'] console.log(schemaA.objectKeys('a.b')); // ['c'] console.log(schemaB.objectKeys('a.b')); // ['c'] // SimpleSchema2 console.log(schemaA.objectKeys('a')); // [] console.log(schemaB.objectKeys('a')); // ['b'] console.log(schemaA.objectKeys('a.b')); // [] console.log(schemaB.objectKeys('a.b')); // ['c'] // SimpleSchema2 - expected output console.log(schemaA.objectKeys('a')); // ['b'] console.log(schemaB.objectKeys('a')); // ['b'] console.log(schemaA.objectKeys('a.b')); // ['c'] console.log(schemaB.objectKeys('a.b')); // ['c']
The text was updated successfully, but these errors were encountered:
I think this might be fixed with #31. Please see https://github.com/clayne11/node-simple-schema. Create an issue on the new repo if there's still an problem.
Sorry, something went wrong.
I'll give it a try after the Christmas, @clayne11.
Released a fix for this in 0.0.4
No branches or pull requests
Hey!
During integration between uniforms (React forms package) and SimpleSchema2 (vazco/uniforms#99), I've found this bug.
The text was updated successfully, but these errors were encountered: