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

Documentation on pick issue #21

Open
mariusrak opened this issue Jan 16, 2025 · 0 comments
Open

Documentation on pick issue #21

mariusrak opened this issue Jan 16, 2025 · 0 comments

Comments

@mariusrak
Copy link

In comparison with simpl-schema there is this block:

Schema extacting

The pick and omit methods accept a comma seperated list of values to pick or omit, but not an array.
E.g.

// Simple-Schema
schema.pick(['field','field2']);

// Faster-Schema
schema.pick(['field','field2']);

Which should show some difference, but both APIs look same. In main documentaiton, the API looks like this:

const nameSchema = schema.pick('firstName', 'lastName', 'address.*');

So I guess the comparison documentation should be fixed

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