Commit 86139f6
fix(example-getting-started): remove juggler warning
Explicitly cast path parameter "id" from string to number because the
REST transport does not implement parameter coercion yet.
See #750
This change removes the following warnings from `npm test` output:
WARNING: id property cannot be changed from 3 to 3 for model:Todo
in 'before save' operation hook
WARNING: id property cannot be changed from 3 to 3 for model:Todo
in 'loaded' operation hook1 parent f11b9fe commit 86139f6
File tree
1 file changed
+12
-0
lines changed- packages/example-getting-started/src/controllers
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| |||
0 commit comments