-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
Quick Start Docs, curl example different, when Postgres is used. #231
Comments
If you create application with generator-featers, Before: let user = sequelize.define('user', {
text: {
type: Sequelize.STRING,
allowNull: false,
unique: true,
validate: {
isAlphaNumeric: { msg: '`text` must only contain alpha numeric characters' }
}
}
}, {
freezeTableName: true
}); After: let user = sequelize.define('user', {
text: {
type: Sequelize.STRING,
allowNull: false,
unique: true,
validate: {
isAlphanumeric: { msg: '`text` must only contain alpha numeric characters' }
}
}
}, {
freezeTableName: true
}); |
We fixed this typo in generator feathersjs-ecosystem/generator-feathers#39 |
Thank you very much! Great! |
That validation doesn't really make any sense anyway does it? A message text can be anything. I'm thinking we should remove it. |
@daffl ya it doesn't really make sense. It was only added to show how you can do validations. Realistically you'd probably be changing your model pretty quick anyway. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs. |
I refer to: http://docs.feathersjs.com/getting-started/quick-start.html Step 7.
Current curl example:
Fails with Postgres with this error:
If I just use a single word (no space and no exclamation mark) it works:
curl 'http://localhost:3030/messages' -H 'Content-Type: application/json' --data-binary '{ "text": "Hello3"
}'I suggest to change the example or to use different template parameters in the sequelize model.
The text was updated successfully, but these errors were encountered: