-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"trim" and "lowercase" convertions and formatting properties not working #523
Comments
Unfortunately, this is currently not working - see also: loopbackio/loopback-datasource-juggler#128 |
@raymondfeng Should this be labeled as a doc issue? If so, can you clarify what needs to be changed or added to docs? |
@crandmck looks like this issue is lost in refactoring ... Was this an issue for loopback or loopback-datasource-juggler ... Multi-Repo hell :( |
From loopbackio/loopback-datasource-juggler#128, it looks like property and conversion options are not working / supported. @raymondfeng can you confirm? If that's true, I should remove that section from the docs (until it's fixed). |
This should definitely be removed |
I "commented out" that section from http://docs.strongloop.com/display/LB/Model+definition+JSON+file, so it won't be visible to general viewers. |
Going to close this since the issue is addressed. Will need to add it back once those features are actually implemented. |
{
"name": "Post",
"base": "PersistedModel",
"properties": {
"title": {
"type": "string",
"required": true,
"trim": true,
"lowercase": true
}
}
the "trim" and "lowercase" on "title" properties not work when I post data to the API I got response with
{
"title": "SDFSFSDF ",
"id": "54049e7fb36b19c817a00012"
}
Did I do something wrong or misunderstand ?
The text was updated successfully, but these errors were encountered: